From 41bf3ea5c8fb9eab46c1824a8fc600fc82893a88 Mon Sep 17 00:00:00 2001 From: kai Date: Wed, 25 Jul 2012 18:20:42 +0200 Subject: [PATCH] Fix warning about casting away constness by using const_cast<>. --- driver/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/main.cpp b/driver/main.cpp index a294a7d8..732f50d1 100644 --- a/driver/main.cpp +++ b/driver/main.cpp @@ -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(&final_args[0]), "LLVM-based D Compiler\n", true); // Print config file path if -v was passed if (global.params.verbose) {