1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

xorg ports: Add -Werror=uninitialized to CFLAGS

Add -Werror=uninitialized to CFLAGS for ports specifying
xorg-cat:[driver,lib,xserver].  There has been cases in the past when use of
uninitialized variables have caused crashes, so add this as an error to
detect it early.
This commit is contained in:
Niclas Zeising 2020-02-20 21:41:02 +00:00
parent eaeca8ea2a
commit aedfc9fa1a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=526592

View File

@ -124,6 +124,7 @@ USE_XORG+= xorg-macros
. elif ${_XORG_CAT} == driver
USE_XORG+= xi xorg-server xorgproto
CFLAGS+= -Werror=uninitialized
. if ${_XORG_BUILDSYS} == meson
# Put special stuff for meson here
. else
@ -150,6 +151,7 @@ PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \
. endif
. elif ${_XORG_CAT} == lib
CFLAGS+= -Werror=uninitialized
.include "${USESDIR}/pathfix.mk"
. if ${_XORG_BUILDSYS} == meson
# put meson stuff here
@ -165,6 +167,7 @@ CONFIGURE_ARGS+=--enable-malloc0returnsnull
. elif ${_XORG_CAT} == xserver
DISTNAME?= xorg-server-${PORTVERSION}
CFLAGS+= -Werror=uninitialized
.include "${USESDIR}/pathfix.mk"
. if ${_XORG_BUILDSYS} == meson
# put meson stuff here