upd makefile to compile for c2x

replace fallthrough comment with fallthrough attribute
This commit is contained in:
onyx-and-iris 2024-07-09 12:59:46 +01:00
parent babec7abbb
commit d7d42e4b21
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ ifeq ($(LOG_USE_COLOR), yes)
else else
CPPFLAGS := -Iinclude -MMD -MP CPPFLAGS := -Iinclude -MMD -MP
endif endif
CFLAGS = -O -Wall -W -pedantic -ansi -std=c99 CFLAGS = -O -Wall -W -pedantic -ansi -std=c2x
LDFLAGS := -Llib LDFLAGS := -Llib
LDLIBS := -lm LDLIBS := -lm

View File

@ -136,7 +136,7 @@ int main(int argc, char *argv[])
optopt); optopt);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
case 'h': case 'h':
/* FALLTHROUGH */ [[fallthrough]];
default: default:
usage(); usage();
} }