BUILD: globally enable -Wundef
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Aug 2021 04:02:47 +0000 (06:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Aug 2021 08:16:30 +0000 (10:16 +0200)
commit28e295d92c6fcb416ce6077cb2018a48f3c258f3
treea6602df7e76af424a1efc92d798d66303a502b6d
parent7b2108cad1aa963dae663bdabb3840132afbe6b5
BUILD: globally enable -Wundef

As seen in issue #1369, supporting #if with unknown macros can silently
hide typos that may result in suboptimal code paths to be used, or even
possibly bugs. It looks like our code base does not rely that much on
this, so it's worth enabling -Wundef to catch future ones and have them
turned to more explicit "#if defined()" or #ifdef.
Makefile