Revert "board/sim: Remove the too strict warning"

This reverts commit e70bff723b.

* These warnings sometimes find real bugs. There are ways to disable
  the specific warnings for the specific code (eg. libcxx) selectively.

* It doesn't make much sense to disable these warnings only on sim.
  There are many boards with -Wall -Wshadow. Because the sim is
  mainly for development and testing, it should be less forgiving
  than real boards.
This commit is contained in:
YAMAMOTO Takashi 2020-12-22 10:31:59 +09:00 committed by Xiang Xiao
parent 080b2dfceb
commit 374d05a05a

View File

@ -59,8 +59,8 @@ ifeq ($(CONFIG_CXX_EXCEPTION),)
ARCHCPUFLAGSXX += -fno-exceptions -fcheck-new
endif
ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wstrict-prototypes -Wundef
ARCHWARNINGSXX = -Wundef
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
# Add -fvisibility=hidden
# Because we don't want export nuttx's symbols to share libraries