Skip to content

Commit b144116

Browse files
miguelafsilva5danielRep
authored andcommitted
feat(flags): Add warning flags to Makefile
These flags are enabled in Clang compiler by default. Adding these flags minimized the discrepancies between GCC and Clang Signed-off-by: Miguel Silva <[email protected]>
1 parent e716131 commit b144116

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ ifeq ($(CC_IS_GCC),y)
233233
-Wconversion -Wsign-conversion \
234234
-Wmissing-prototypes -Wmissing-declarations \
235235
-Wswitch-default -Wshadow -Wshadow=global \
236-
-Wcast-qual -Wunused-macros
236+
-Wcast-qual -Wunused-macros \
237+
-Wstrict-prototypes -Wunused-but-set-variable
237238

238239
override CFLAGS+=-Wno-unused-command-line-argument \
239240
-pedantic -pedantic-errors

0 commit comments

Comments
 (0)