mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Dial back -Wimplicit-fallthrough to level 3
The additional pain from level 4 is excessive for the gain. Also revert all the source annotation changes to their original wordings, to avoid back-patching pain. Discussion: https://postgr.es/m/31166.1589378554@sss.pgh.pa.us
This commit is contained in:
@ -55,11 +55,6 @@ ifeq (,$(ZIC))
|
||||
ZIC= ./zic
|
||||
endif
|
||||
|
||||
# zic.c doesn't compile cleanly with our default
|
||||
# -Wimplicit-fallthrough=4, and we don't want to touch the file since
|
||||
# it's third-party code, so downgrade to 3 for that file.
|
||||
zic.o: CFLAGS := $(subst -Wimplicit-fallthrough=4,-Wimplicit-fallthrough=3,$(CFLAGS))
|
||||
|
||||
zic: $(ZICOBJS) | submake-libpgport
|
||||
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
||||
|
||||
|
Reference in New Issue
Block a user