Skip to content

Commit dd365c7

Browse files
committed
gtk2: Fix gcc 14 build.
1 parent a13d358 commit dd365c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x11/gtk2/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk2-update-icon-cache"
9292
FILES_SUBST+= ICON_THEME_DIR="${PREFIX}/share/icons"
9393
INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl
9494

95+
.include "../../mk/compiler.mk"
96+
.if ${PKGSRC_COMPILER:M*gcc*} && empty(PKGSRC_COMPILER:Mgcc[3-4].*)
97+
CFLAGS+= -Wno-error=incompatible-pointer-types
98+
.endif
99+
95100
_BUILDING_GTK2= yes
96101
.include "modules.mk"
97102

0 commit comments

Comments
 (0)