added -fwrapv to CFLAGS to ensure that signed overflows have a well defined behavior
This commit is contained in:
parent
9e52965257
commit
a610598df6
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -96,6 +96,7 @@ else
|
|||
endif
|
||||
endif
|
||||
STRIP=$(CROSS_PREFIX)strip
|
||||
CFLAGS+=-fwrapv # ensure that signed overflows behave as expected
|
||||
ifdef CONFIG_WERROR
|
||||
CFLAGS+=-Werror
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue