-/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static void sg_config_cmd_line(int *argc, char **argv)
{
bool shall_exit = false;
- int i;
- int j;
bool parse_args = true; // Stop parsing the parameters once we found '--'
- for (j = i = 1; i < *argc; i++) {
+ int j = 1;
+ for (int i = j; i < *argc; i++) {
if (not strcmp("--", argv[i])) {
parse_args = false;
// Remove that '--' from the arguments