Skip to content

Commit

Permalink
build: Update compiler option to -std=gnu11
Browse files Browse the repository at this point in the history
We want to use modern features in C11 (well, maybe in C99) as well
as some extensions in GNU compilers.  Should have no impact now.

Signed-off-by: Namhyung Kim <[email protected]>
  • Loading branch information
namhyung committed Mar 8, 2023
1 parent 9e0ae4a commit 4c9117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ INSTALL = install

export ARCH CC AR LD RM srcdir objdir LDFLAGS

COMMON_CFLAGS := -D_GNU_SOURCE $(CFLAGS) $(CPPFLAGS)
COMMON_CFLAGS := -std=gnu11 -D_GNU_SOURCE $(CFLAGS) $(CPPFLAGS)
COMMON_CFLAGS += -iquote $(srcdir) -iquote $(objdir) -iquote $(srcdir)/arch/$(ARCH)
COMMON_CFLAGS += -Wdeclaration-after-statement
#CFLAGS-DEBUG = -g -D_GNU_SOURCE $(CFLAGS_$@)
Expand Down

0 comments on commit 4c9117d

Please sign in to comment.