diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2011-11-19 17:54:05 (GMT) |
---|---|---|
committer | Nicolas Despres <nicolas.despres@gmail.com> | 2011-11-19 17:56:15 (GMT) |
commit | b79f3fcef98ad316832e128dd240b47d06979ba0 (patch) | |
tree | 1912564f46a022ed3ecb6ed8d91cc9db4047c4d7 /src | |
parent | 657a0b919f2ff7e79ce4e1f555c50f23226e3ee2 (diff) | |
download | Ninja-b79f3fcef98ad316832e128dd240b47d06979ba0.zip Ninja-b79f3fcef98ad316832e128dd240b47d06979ba0.tar.gz Ninja-b79f3fcef98ad316832e128dd240b47d06979ba0.tar.bz2 |
Fix compilation warning with getopt() on MinGW.
Diffstat (limited to 'src')
-rw-r--r-- | src/ninja.cc | 2 |
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; |