summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index b2c8da0..9c0a90f 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -412,7 +412,7 @@ int CmdClean(State* state, int argc, char* argv[], const BuildConfig& config) {
optind = 1;
int opt;
- while ((opt = getopt(argc, argv, "gr")) != -1) {
+ while ((opt = getopt(argc, argv, const_cast<char*>("gr"))) != -1) {
switch (opt) {
case 'g':
generator = true;