Skip to content

Commit

Permalink
Makefile.common: add -fno-strict-aliasing
Browse files Browse the repository at this point in the history
Newer versions of GCC take advantage of strict aliasing rule that we break, without explicitely warning about it.

JIRA: RTOS-927
  • Loading branch information
badochov committed Oct 1, 2024
1 parent 9270dc4 commit abeffae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ EXPORT_LDFLAGS := $(LDFLAGS)

# add our coding-style related options
CFLAGS += -Wall -Wstrict-prototypes -fno-common
# TODO: try not to break this rule outside of kernel
CFLAGS += -fno-strict-aliasing
CXXFLAGS += -Wall
LDFLAGS += -z noexecstack

Expand Down

0 comments on commit abeffae

Please sign in to comment.