removed argp related warnings

parent 204b7f76
......@@ -210,20 +210,20 @@ struct arguments
static struct argp_option options[] =
{
{"output file", 'o', "FILE", 0, "Render to image, default False"},
{"width", 'w', "WIDTH", 0, "Width of window/image, default 640"},
{"height", 'h', "HEIGHT", 0, "Height of window/image, default 480"},
{"iterations", 'i', "ITERATIONS", 0, "Max iterations, default 250."},
{"dont_use_avx", 'x', 0, 0, "NOT use avx for calculations, default False"},
{"dont_use_omp", 't', 0, 0, "NOT use openmpfor calculations, default False"},
{"recalc", 'r', 0, 0, "Recalculate set on every frame, default False"},
{"x_min", 'a', "VALUE", 0, "X min"},
{"x_max", 'b', "VALUE", 0, "X max"},
{"y_min", 'c', "VALUE", 0, "Y min"},
{"y_max", 'd', "VALUE", 0, "Y max"},
{"zoom", 'z', "VALUE", 0, "Zoom"},
{"output file", 'o', "FILE", 0, "Render to image, default False", 0},
{"width", 'w', "WIDTH", 0, "Width of window/image, default 640", 0},
{"height", 'h', "HEIGHT", 0, "Height of window/image, default 480", 0},
{"iterations", 'i', "ITERATIONS", 0, "Max iterations, default 250.", 0},
{"dont_use_avx", 'x', 0, 0, "NOT use avx for calculations, default False", 0},
{"dont_use_omp", 't', 0, 0, "NOT use openmpfor calculations, default False", 0},
{"recalc", 'r', 0, 0, "Recalculate set on every frame, default False", 0},
{"x_min", 'a', "VALUE", 0, "X min", 0},
{"x_max", 'b', "VALUE", 0, "X max", 0},
{"y_min", 'c', "VALUE", 0, "Y min", 0},
{"y_max", 'd', "VALUE", 0, "Y max", 0},
{"zoom", 'z', "VALUE", 0, "Zoom", 0},
{0}
};
......@@ -282,7 +282,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
return 0;
}
static struct argp argp = {options, parse_opt, NULL, NULL};
static struct argp argp = {options, parse_opt, NULL, NULL, NULL, NULL, NULL};
void
render_cl(Array *arr, SDL_Texture *texture, SDL_Renderer *renderer, int width, int height, ViewInfo *view,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment