Module Name: src Committed By: rillig Date: Sun Jul 3 14:09:22 UTC 2022
Modified Files: src/external/mit/xorg/lib/libXaw: Makefile.common Log Message: libXaw: suppress lint warnings about pointer casts Typical example: TextAction.c(373): warning: pointer cast from 'pointer to struct _WidgetRec' to 'pointer to struct _TextRec' may be troublesome [247] To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/libXaw/Makefile.common Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/mit/xorg/lib/libXaw/Makefile.common diff -u src/external/mit/xorg/lib/libXaw/Makefile.common:1.3 src/external/mit/xorg/lib/libXaw/Makefile.common:1.4 --- src/external/mit/xorg/lib/libXaw/Makefile.common:1.3 Sun May 30 02:20:09 2021 +++ src/external/mit/xorg/lib/libXaw/Makefile.common Sun Jul 3 14:09:22 2022 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.3 2021/05/30 02:20:09 joerg Exp $ +# $NetBSD: Makefile.common,v 1.4 2022/07/03 14:09:22 rillig Exp $ CPPFLAGS+= -DHAVE_WCHAR_H \ -DHAVE_WCTYPE_H \ @@ -22,3 +22,8 @@ COPTS.Pixmap.c+= ${${ACTIVE_CC} == "gcc" 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