# $NetBSD: Makefile.common,v 1.4 2022/07/03 14:09:22 rillig Exp $ CPPFLAGS+= -DHAVE_WCHAR_H \ -DHAVE_WCTYPE_H \ -DNO_WIDEC_H \ -DHAVE_ISWALNUM \ -DHAVE_GETPAGESIZE \ -DHAVE_UNISTD_H \ -D_CONST_X_STRING=1 \ -DPROJECT_ROOT=\"${X11ROOTDIR}\" LIBDPLIBS=\ Xmu ${.CURDIR}/../libXmu \ Xt ${.CURDIR}/../libXt \ SM ${.CURDIR}/../libSM \ ICE ${.CURDIR}/../libICE \ Xext ${.CURDIR}/../libXext \ X11 ${.CURDIR}/../libX11/dynamic COPTS.Converters.c+= ${${ACTIVE_CC} == "clang":? -Wno-format :} COPTS.Pixmap.c+= ${${ACTIVE_CC} == "gcc":? -Wno-discarded-qualifiers :} COPTS.Pixmap.c+= ${${ACTIVE_CC} == "clang":? -Wno-incompatible-pointer-types-discards-qualifiers :} COPTS.TextAction.c+= ${${ACTIVE_CC} == "gcc":? -Wno-discarded-qualifiers :} COPTS.TextAction.c+= ${${ACTIVE_CC} == "clang":? -Wno-incompatible-pointer-types-discards-qualifiers :} # This warning mostly affects casts between _WidgetRec and _TextRec, # which don't have a common type prefix, but their members are compatible # nevertheless. LINTFLAGS+= -X 247 # pointer cast from '%s' to '%s' may be troublesome |