Opened 6 years ago

#5329 new defect

-Wextra is passed twice in the Makefile generated by Premake5

Reported by: Stan Owned by:
Priority: If Time Permits Milestone: Backlog
Component: Build & Packages Keywords:
Cc: Patch:

Description

While I was investigating quickly to see if I could help the user to compile on CentOS I noticed the makefile I generated on Elementary OS (Debian based distribution) had twice the Wextra flag passed to gcc.

Could be replaced by Wpedantic maybe.

Generated line example. Could be cleaner too but since it's autogenerated it's fine.

  ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -g -Wall -Wextra -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -std=c++0x -fvisibility=hidden
  ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -g -Wall -Wextra -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -std=c++0x -fvisibility=hidden

Change History (0)

Note: See TracTickets for help on using tickets.