From 058f4023ea198b0b2d9662919c40ce10051eb107 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Wed, 28 Sep 2022 17:05:44 +0200 Subject: [PATCH] Removed const from argv --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 6fdc22e..81ab0cf 100644 --- a/main.cpp +++ b/main.cpp @@ -80,7 +80,7 @@ bool handle_window_resize(const SDL_Event& event, bool quit) { return quit; } -int main(int argc, const char * argv[]) { +int main(int argc, char* argv[]) { try { // gather plugins #if DEBUG @@ -101,7 +101,7 @@ int main(int argc, const char * argv[]) { {"version", no_argument, &opt_val, 1}, {nullptr, 0, nullptr, 0} }; - while ((opt_char = getopt_long(argc, const_cast(argv), "hlrw", long_options, nullptr)) != -1) { + while ((opt_char = getopt_long(argc, argv, "hlrw", long_options, nullptr)) != -1) { std::string arg {optarg ? optarg : ""}; switch (opt_char) { case 0: {