mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Fix warning about casting away constness by using const_cast<>.
This commit is contained in:
parent
ff7b4a78fd
commit
41bf3ea5c8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue