mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
handle clang11 -Wc99-designator
This commit is contained in:
parent
3119a87801
commit
2edb7fe690
@ -52,11 +52,11 @@ constexpr int OPT_RIGHTOFF = 103;
|
||||
void parse_args(int argc, char** argv, struct notcurses_options* opts,
|
||||
struct ncreel_options* ropts){
|
||||
const struct option longopts[] = {
|
||||
{ .name = "ot", .has_arg = 1, .flag = nullptr, OPT_TOPOFF, },
|
||||
{ .name = "ob", .has_arg = 1, .flag = nullptr, OPT_BOTTOMOFF, },
|
||||
{ .name = "ol", .has_arg = 1, .flag = nullptr, OPT_LEFTOFF, },
|
||||
{ .name = "or", .has_arg = 1, .flag = nullptr, OPT_RIGHTOFF, },
|
||||
{ .name = nullptr, .has_arg = 0, .flag = nullptr, 0, },
|
||||
{ .name = "ot", .has_arg = 1, .flag = nullptr, .val = OPT_TOPOFF, },
|
||||
{ .name = "ob", .has_arg = 1, .flag = nullptr, .val = OPT_BOTTOMOFF, },
|
||||
{ .name = "ol", .has_arg = 1, .flag = nullptr, .val = OPT_LEFTOFF, },
|
||||
{ .name = "or", .has_arg = 1, .flag = nullptr, .val = OPT_RIGHTOFF, },
|
||||
{ .name = nullptr, .has_arg = 0, .flag = nullptr, .val = 0, },
|
||||
};
|
||||
int c;
|
||||
while((c = getopt_long(argc, argv, "b:t:h", longopts, nullptr)) != -1){
|
||||
|
Loading…
Reference in New Issue
Block a user