Fix warning about casting away constness by using const_cast<>.

This commit is contained in:
kai 2012-07-25 18:20:42 +02:00
parent ff7b4a78fd
commit 41bf3ea5c8

View file

@ -228,7 +228,7 @@ int main(int argc, char** argv)
// Handle fixed-up arguments!
cl::SetVersionPrinter(&printVersion);
cl::ParseCommandLineOptions(final_args.size(), (char**)&final_args[0], "LLVM-based D Compiler\n", true);
cl::ParseCommandLineOptions(final_args.size(), const_cast<char**>(&final_args[0]), "LLVM-based D Compiler\n", true);
// Print config file path if -v was passed
if (global.params.verbose) {