=> Building x11/xmh build started at Sun Oct 9 16:12:43 PDT 2016 port directory: /usr/ports/x11/xmh building for: DragonFly pkgbox64.dragonflybsd.org 4.7-DEVELOPMENT DragonFly v4.7.0.78.g7d868-DEVELOPMENT #7: Mon Aug 1 22:25:32 PDT 2016 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 maintained by: x11@FreeBSD.org ident warning: no id keywords in /build/boomdata/data/.m/Release46-default/ref/../08//usr/ports/x11/xmh/Makefile Makefile ident: Poudriere version: 3.1-pre Host OSVERSION: 400700 Jail OSVERSION: 400600 ---Begin Environment--- STATUS=1 SAVED_TERM=screen MASTERMNT=/build/boomdata/data/.m/Release46-default/ref PATH=/usr/local/libexec/poudriere:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/xorg/bin:/usr/X11R6/bin:/root/bin:/sbin:/usr/sbin POUDRIERE_BUILD_TYPE=bulk PKGNAME=xmh-1.0.3 OLDPWD=/root/boom PWD=/build/boomdata/data/.m/Release46-default/ref/.p/pool MASTERNAME=Release46-default TERM=cons25 USER=root HOME=/root POUDRIERE_VERSION=3.1-pre LOCALBASE=/usr/local PACKAGE_BUILDING=yes ---End Environment--- ---Begin OPTIONS List--- ---End OPTIONS List--- --CONFIGURE_ARGS-- --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/x11/xmh XDG_CONFIG_HOME=/wrkdirs/x11/xmh HOME=/wrkdirs/x11/xmh TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144 --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/x11/xmh XDG_CONFIG_HOME=/wrkdirs/x11/xmh HOME=/wrkdirs/x11/xmh TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS="" LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=4.6 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/xmh" EXAMPLESDIR="share/examples/xmh" DATADIR="share/xmh" WWWDIR="www/xmh" ETCDIR="etc/xmh" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/xmh DOCSDIR=/usr/local/share/doc/xmh EXAMPLESDIR=/usr/local/share/examples/xmh WWWDIR=/usr/local/www/xmh ETCDIR=/usr/local/etc/xmh --End SUB_LIST-- ---Begin make.conf--- NO_BACKUP=yes USE_PACKAGE_DEPENDS=yes PKG_CREATE_VERBOSE=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORT_DBDIR=/options PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles MAKE_JOBS_NUMBER=5 ---End make.conf--- =================================================== =========================================================================== =================================================== ===> xmh-1.0.3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.8.7_3.txz Installing pkg-1.8.7_3... Extracting pkg-1.8.7_3: .......... done ===> xmh-1.0.3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of xmh-1.0.3 =========================================================================== =================================================== =========================================================================== =================================================== ===> Fetching all distfiles required by xmh-1.0.3 for building =========================================================================== =================================================== ===> Fetching all distfiles required by xmh-1.0.3 for building => SHA256 Checksum OK for xorg/app/xmh-1.0.3.tar.bz2. =========================================================================== =================================================== =========================================================================== =================================================== ===> Fetching all distfiles required by xmh-1.0.3 for building ===> Extracting for xmh-1.0.3 => SHA256 Checksum OK for xorg/app/xmh-1.0.3.tar.bz2. =========================================================================== =================================================== =========================================================================== =================================================== ===> Patching for xmh-1.0.3 =========================================================================== =================================================== ===> xmh-1.0.3 depends on package: pkgconf>=0.9.10 - not found ===> Installing existing package /packages/All/pkgconf-1.0.1.txz Installing pkgconf-1.0.1... Extracting pkgconf-1.0.1: .......... done ===> xmh-1.0.3 depends on package: pkgconf>=0.9.10 - found ===> Returning to build of xmh-1.0.3 ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xorg-macros.pc - not found ===> Installing existing package /packages/All/xorg-macros-1.19.0.txz Installing xorg-macros-1.19.0... Extracting xorg-macros-1.19.0: ... done ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xorg-macros.pc - found ===> Returning to build of xmh-1.0.3 ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - not found ===> Installing existing package /packages/All/libXaw-1.0.13,2.txz Installing libXaw-1.0.13,2... `-- Installing libXpm-3.5.11_4... | `-- Installing xproto-7.0.28... | `-- Extracting xproto-7.0.28: .......... done | `-- Installing libXt-1.1.5,1... | | `-- Installing libSM-1.2.2_3,1... | | `-- Installing libICE-1.0.9_1,1... | | `-- Extracting libICE-1.0.9_1,1: .......... done | | `-- Extracting libSM-1.2.2_3,1: .......... done | | `-- Installing libX11-1.6.3,1... | | `-- Installing kbproto-1.0.7... | | `-- Extracting kbproto-1.0.7: .......... done | | `-- Installing libXdmcp-1.1.2... | | `-- Extracting libXdmcp-1.1.2: ......... done | | `-- Installing libxcb-1.11.1... | | | `-- Installing libxml2-2.9.4... | | | `-- Extracting libxml2-2.9.4: .......... done | | | `-- Installing libpthread-stubs-0.3_6... | | | `-- Extracting libpthread-stubs-0.3_6: ..... done | | | `-- Installing libXau-1.0.8_3... | | | `-- Extracting libXau-1.0.8_3: .......... done | | `-- Extracting libxcb-1.11.1: .......... done | | `-- Extracting libX11-1.6.3,1: .......... done | `-- Extracting libXt-1.1.5,1: .......... done | `-- Installing libXext-1.3.3_1,1... | | `-- Installing xextproto-7.3.0... | | `-- Extracting xextproto-7.3.0: .......... done | `-- Extracting libXext-1.3.3_1,1: .......... done | `-- Installing gettext-runtime-0.19.8.1... | | `-- Installing indexinfo-0.2.5... | | `-- Extracting indexinfo-0.2.5: .... done | `-- Extracting gettext-runtime-0.19.8.1: .......... done `-- Extracting libXpm-3.5.11_4: .......... done `-- Installing libXmu-1.1.2_3,1... `-- Extracting libXmu-1.1.2_3,1: .......... done `-- Installing printproto-1.0.5... `-- Extracting printproto-1.0.5: .... done `-- Installing libXp-1.0.3,1... `-- Extracting libXp-1.0.3,1: .......... done Extracting libXaw-1.0.13,2: .......... done ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found ===> Returning to build of xmh-1.0.3 ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - not found ===> Installing existing package /packages/All/xbitmaps-1.1.1.txz Installing xbitmaps-1.1.1... Extracting xbitmaps-1.1.1: .......... done ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - found ===> Returning to build of xmh-1.0.3 =========================================================================== =================================================== =========================================================================== =================================================== ===> Configuring for xmh-1.0.3 configure: loading site script /usr/ports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking dependency style of cc... gcc3 checking for cc option to accept ISO C99... none needed checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking whether __clang__ is declared... no checking whether __INTEL_COMPILER is declared... no checking whether __SUNPRO_C is declared... no checking pkg-config is at least version 0.9.0... yes checking build system type... x86_64-portbld-dragonfly4.6 checking host system type... x86_64-portbld-dragonfly4.6 checking for a sed that does not truncate output... (cached) /usr/bin/sed checking if cc supports -Werror=unknown-warning-option... no checking if cc supports -Werror=unused-command-line-argument... no checking if cc supports -Wall... yes checking if cc supports -Wpointer-arith... yes checking if cc supports -Wmissing-declarations... yes checking if cc supports -Wformat=2... yes checking if cc supports -Wstrict-prototypes... yes checking if cc supports -Wmissing-prototypes... yes checking if cc supports -Wnested-externs... yes checking if cc supports -Wbad-function-cast... yes checking if cc supports -Wold-style-definition... yes checking if cc supports -Wdeclaration-after-statement... yes checking if cc supports -Wunused... yes checking if cc supports -Wuninitialized... yes checking if cc supports -Wshadow... yes checking if cc supports -Wmissing-noreturn... yes checking if cc supports -Wmissing-format-attribute... yes checking if cc supports -Wredundant-decls... yes checking if cc supports -Wlogical-op... yes checking if cc supports -Werror=implicit... yes checking if cc supports -Werror=nonnull... yes checking if cc supports -Werror=init-self... yes checking if cc supports -Werror=main... yes checking if cc supports -Werror=missing-braces... yes checking if cc supports -Werror=sequence-point... yes checking if cc supports -Werror=return-type... yes checking if cc supports -Werror=trigraphs... yes checking if cc supports -Werror=array-bounds... yes checking if cc supports -Werror=write-strings... yes checking if cc supports -Werror=address... yes checking if cc supports -Werror=int-to-pointer-cast... yes checking if cc supports -Werror=pointer-to-int-cast... yes checking if cc supports -pedantic... yes checking if cc supports -Werror... yes checking if cc supports -Werror=attributes... yes checking whether make supports nested variables... (cached) yes checking for XMH... yes checking for APPDEFS... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating man/Makefile config.status: creating config.h config.status: executing depfiles commands =========================================================================== =================================================== ===> Building for xmh-1.0.3 --- all --- /usr/bin/make all-recursive --- all-recursive --- Making all in man --- xmh.1 --- /usr/bin/sed -e 's|__vendorversion__|"xmh 1.0.3" "X Version 11"|' -e 's|__xorgversion__|"xmh 1.0.3" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr/local|g' -e 's|__apploaddir__|/usr/local/share/X11/app-defaults|g' -e 's|__appmansuffix__|1|g' -e 's|__drivermansuffix__|4|g' -e 's|__adminmansuffix__|8|g' -e 's|__libmansuffix__|3|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < xmh.man > xmh.1 --- bbox.o --- --- command.o --- --- compfuncs.o --- --- folder.o --- --- init.o --- --- command.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o command.c --- compfuncs.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT compfuncs.o -MD -MP -MF .deps/compfuncs.Tpo -c -o compfuncs.o compfuncs.c --- folder.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT folder.o -MD -MP -MF .deps/folder.Tpo -c -o folder.o folder.c --- init.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o init.c --- bbox.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT bbox.o -MD -MP -MF .deps/bbox.Tpo -c -o bbox.o bbox.c --- command.o --- command.c: In function '_DoCommandToFileOrPipe': command.c:160:19: warning: passing argument 1 of 'SystemError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SystemError( "couldn't re-direct standard output" ); ^ command.c:72:13: note: expected 'char *' but argument is of type 'const char *' static void SystemError(char* text) ^ command.c:178:15: warning: passing argument 1 of 'SystemError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SystemError( "couldn't re-direct standard error" ); ^ command.c:72:13: note: expected 'char *' but argument is of type 'const char *' static void SystemError(char* text) ^ command.c:217:25: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (pid == -1) Punt("Couldn't fork!"); ^ In file included from xmh.h:149:0, from command.c:31: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ command.c:362:7: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("(cannot execvp it)"); ^ In file included from xmh.h:149:0, from command.c:31: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ command.c: In function 'DoCommand': command.c:430:42: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] FILEPTR file = FOpenAndCheck(inputfile, "r"); ^ In file included from xmh.h:149:0, from command.c:31: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ command.c:438:43: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] FILEPTR file = FOpenAndCheck(outputfile, "w"); ^ In file included from xmh.h:149:0, from command.c:31: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ command.c: In function 'DoCommandToFile': command.c:473:32: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] file = FOpenAndCheck(name, "w"); ^ In file included from xmh.h:149:0, from command.c:31: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ --- folder.o --- folder.c: In function 'DoOpenFolder': folder.c:154:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "Cannot open selected folder."); ^ In file included from xmh.h:149:0, from folder.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ folder.c: In function 'DoOpenFolderInNewWindow': folder.c:236:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "Cannot open selected folder."); ^ In file included from xmh.h:149:0, from folder.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ folder.c: In function 'DoCreateFolder': folder.c:320:31: warning: passing argument 2 of 'PopupPrompt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupPrompt(scrn->parent, "Create folder named:", CreateFolder); ^ In file included from xmh.h:149:0, from folder.c:31: externs.h:90:13: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupPrompt (Widget, String, XtCallbackProc); ^ folder.c: In function 'DoDeleteFolder': folder.c:502:6: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Cannot open selected folder for confirmation to delete."); ^ In file included from xmh.h:149:0, from folder.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ folder.c:510:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "There is a delete pending on this folder."); ^ In file included from xmh.h:149:0, from folder.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ folder.c: In function 'XmhWMProtocols': folder.c:922:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static char*WM_DELETE_WINDOW = "WM_DELETE_WINDOW"; ^ folder.c:923:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static char*WM_SAVE_YOURSELF = "WM_SAVE_YOURSELF"; ^ --- bbox.o --- In file included from xmh.h:35:0, from bbox.c:35: bbox.c: In function 'BBoxCreate': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:63:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[n], XtNskipAdjust, True); n++; ^ bbox.c: In function 'bboxAddButton': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:120:2: note: in expansion of macro 'XtSetArg' XtSetArg(args[i], XtNradioGroup, radio_group); i++; ^ /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:121:2: note: in expansion of macro 'XtSetArg' XtSetArg(args[i], XtNradioData, button->name); i++; ^ bbox.c: In function 'BBoxLockSize': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:338:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNmax, maxheight); /* for Paned widget */ ^ bbox.c: In function 'BBoxMailFlag': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:362:2: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNleftBitmap, &flag); ^ /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:365:6: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNleftBitmap, app_resources.flag_up); ^ /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ bbox.c:369:6: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNleftBitmap, app_resources.flag_down); ^ --- compfuncs.o --- mv -f .deps/compfuncs.Tpo .deps/compfuncs.Po --- main.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function 'Checkpoint': main.c:90:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] String params = "wm_save_yourself"; ^ --- init.o --- init.c:40:1: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "*folderButton.label: Close", ^ init.c:41:1: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "*folderButton.borderWidth: 4", ^ init.c:42:1: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "*folderButton.translations: #override : XmhClose()", ^ init.c:61:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"debug", "Debug", XtRBoolean, sizeof(Boolean), ^ init.c:61:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"debug", "Debug", XtRBoolean, sizeof(Boolean), ^ init.c:64:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tempDir", "TempDir", XtRString, sizeof(char *), ^ init.c:64:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tempDir", "TempDir", XtRString, sizeof(char *), ^ init.c:65:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Offset(temp_dir), XtRString, "/tmp"}, ^ init.c:66:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mhPath", "MhPath", XtRString, sizeof(char *), ^ init.c:66:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mhPath", "MhPath", XtRString, sizeof(char *), ^ init.c:67:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Offset(mh_path), XtRString, "/usr/local/mh6"}, ^ init.c:68:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mailPath", "MailPath", XtRString, sizeof(char *), ^ init.c:68:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mailPath", "MailPath", XtRString, sizeof(char *), ^ init.c:70:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"initialFolder", "InitialFolder", XtRString, sizeof(char *), ^ init.c:70:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"initialFolder", "InitialFolder", XtRString, sizeof(char *), ^ init.c:71:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Offset(initial_folder_name), XtRString, "inbox"}, ^ init.c:72:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"initialIncFile", "InitialIncFile", XtRString, sizeof(char *), ^ init.c:72:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"initialIncFile", "InitialIncFile", XtRString, sizeof(char *), ^ init.c:74:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"replyInsertFilter", "ReplyInsertFilter", XtRString, sizeof(char *), ^ init.c:74:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"replyInsertFilter", "ReplyInsertFilter", XtRString, sizeof(char *), ^ init.c:76:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"draftsFolder", "DraftsFolder", XtRString, sizeof(char *), ^ init.c:76:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"draftsFolder", "DraftsFolder", XtRString, sizeof(char *), ^ init.c:77:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Offset(drafts_folder_name), XtRString, "drafts"}, ^ init.c:78:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"printCommand", "PrintCommand", XtRString, sizeof(char *), ^ init.c:78:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"printCommand", "PrintCommand", XtRString, sizeof(char *), ^ init.c:80:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "enscript > /dev/null 2>/dev/null"}, ^ init.c:82:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sendWidth", "SendWidth", XtRInt, sizeof(int), ^ init.c:82:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sendWidth", "SendWidth", XtRInt, sizeof(int), ^ init.c:84:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sendBreakWidth", "SendBreakWidth", XtRInt, sizeof(int), ^ init.c:84:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sendBreakWidth", "SendBreakWidth", XtRInt, sizeof(int), ^ init.c:86:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocWidth", "TocWidth", XtRInt, sizeof(int), ^ init.c:86:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocWidth", "TocWidth", XtRInt, sizeof(int), ^ init.c:88:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"skipDeleted", "SkipDeleted", XtRBoolean, sizeof(Boolean), ^ init.c:88:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"skipDeleted", "SkipDeleted", XtRBoolean, sizeof(Boolean), ^ init.c:90:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"skipMoved", "SkipMoved", XtRBoolean, sizeof(Boolean), ^ init.c:90:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"skipMoved", "SkipMoved", XtRBoolean, sizeof(Boolean), ^ init.c:92:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"skipCopied", "SkipCopied", XtRBoolean, sizeof(Boolean), ^ init.c:92:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"skipCopied", "SkipCopied", XtRBoolean, sizeof(Boolean), ^ init.c:94:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"hideBoringHeaders", "HideBoringHeaders", XtRBoolean, sizeof(Boolean), ^ init.c:94:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"hideBoringHeaders", "HideBoringHeaders", XtRBoolean, sizeof(Boolean), ^ init.c:97:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"geometry", "Geometry", XtRString, sizeof(char *), ^ init.c:97:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"geometry", "Geometry", XtRString, sizeof(char *), ^ init.c:99:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocGeometry", "TocGeometry", XtRString, sizeof(char *), ^ init.c:99:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocGeometry", "TocGeometry", XtRString, sizeof(char *), ^ init.c:101:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"viewGeometry", "ViewGeometry", XtRString, sizeof(char *), ^ init.c:101:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"viewGeometry", "ViewGeometry", XtRString, sizeof(char *), ^ init.c:103:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"compGeometry", "CompGeometry", XtRString, sizeof(char *), ^ init.c:103:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"compGeometry", "CompGeometry", XtRString, sizeof(char *), ^ init.c:105:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"pickGeometry", "PickGeometry", XtRString, sizeof(char *), ^ init.c:105:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"pickGeometry", "PickGeometry", XtRString, sizeof(char *), ^ init.c:107:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocPercentage", "TocPercentage", XtRInt, sizeof(int), ^ init.c:107:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocPercentage", "TocPercentage", XtRInt, sizeof(int), ^ init.c:110:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkNewMail", "CheckNewMail", XtRBoolean, sizeof(Boolean), ^ init.c:110:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkNewMail", "CheckNewMail", XtRBoolean, sizeof(Boolean), ^ init.c:112:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mailInterval", "Interval", XtRInt, sizeof(int), ^ init.c:112:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mailInterval", "Interval", XtRInt, sizeof(int), ^ init.c:114:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"makeCheckpoints", "MakeCheckpoints", XtRBoolean, sizeof(Boolean), ^ init.c:114:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"makeCheckpoints", "MakeCheckpoints", XtRBoolean, sizeof(Boolean), ^ init.c:116:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkpointInterval", "Interval", XtRInt, sizeof(int), ^ init.c:116:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkpointInterval", "Interval", XtRInt, sizeof(int), ^ init.c:118:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkpointNameFormat", "CheckpointNameFormat", ^ init.c:118:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkpointNameFormat", "CheckpointNameFormat", ^ init.c:37:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define xmhCkpDefault "%d.CKP" ^ init.c:120:46: note: in expansion of macro 'xmhCkpDefault' Offset(checkpoint_name_format), XtRString, xmhCkpDefault}, ^ init.c:121:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"rescanInterval", "Interval", XtRInt, sizeof(int), ^ init.c:121:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"rescanInterval", "Interval", XtRInt, sizeof(int), ^ init.c:123:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkFrequency", "CheckFrequency", XtRInt, sizeof(int), ^ init.c:123:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"checkFrequency", "CheckFrequency", XtRInt, sizeof(int), ^ init.c:125:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mailWaitingFlag", "MailWaitingFlag", XtRBoolean, sizeof(Boolean), ^ init.c:125:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"mailWaitingFlag", "MailWaitingFlag", XtRBoolean, sizeof(Boolean), ^ init.c:127:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"newMailIconBitmap", "NewMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:127:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"newMailIconBitmap", "NewMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:129:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"noMailIconBitmap", "NoMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:129:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"noMailIconBitmap", "NoMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:131:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"newMailBitmap", "NewMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:131:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"newMailBitmap", "NewMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:133:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"noMailBitmap", "NoMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:133:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"noMailBitmap", "NoMailBitmap", XtRBitmap, sizeof(Pixmap), ^ init.c:136:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"cursor", "Cursor", XtRCursor, sizeof(Cursor), ^ init.c:136:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"cursor", "Cursor", XtRCursor, sizeof(Cursor), ^ init.c:137:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Offset(cursor), XtRString, "left_ptr"}, ^ init.c:138:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"pointerColor", "PointerColor", XtRPixel, sizeof(Pixel), ^ init.c:138:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"pointerColor", "PointerColor", XtRPixel, sizeof(Pixel), ^ In file included from xmh.h:35:0, from init.c:32: /usr/local/include/X11/Intrinsic.h:1655:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtDefaultForeground "XtDefaultForeground" ^ init.c:139:37: note: in expansion of macro 'XtDefaultForeground' Offset(pointer_color), XtRString, XtDefaultForeground}, ^ init.c:140:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"showOnInc", "ShowOnInc", XtRBoolean, sizeof(Boolean), ^ init.c:140:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"showOnInc", "ShowOnInc", XtRBoolean, sizeof(Boolean), ^ init.c:142:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"stickyMenu", "StickyMenu", XtRBoolean, sizeof(Boolean), ^ init.c:142:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"stickyMenu", "StickyMenu", XtRBoolean, sizeof(Boolean), ^ init.c:144:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"prefixWmAndIconName", "PrefixWmAndIconName", XtRBoolean, sizeof(Boolean), ^ init.c:144:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"prefixWmAndIconName", "PrefixWmAndIconName", XtRBoolean, sizeof(Boolean), ^ init.c:146:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"reverseReadOrder", "ReverseReadOrder", XtRBoolean, sizeof(Boolean), ^ init.c:146:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"reverseReadOrder", "ReverseReadOrder", XtRBoolean, sizeof(Boolean), ^ init.c:148:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"blockEventsOnBusy", "BlockEventsOnBusy", XtRBoolean, sizeof(Boolean), ^ init.c:148:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"blockEventsOnBusy", "BlockEventsOnBusy", XtRBoolean, sizeof(Boolean), ^ init.c:150:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"busyCursor", "BusyCursor", XtRCursor, sizeof(Cursor), ^ init.c:150:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"busyCursor", "BusyCursor", XtRCursor, sizeof(Cursor), ^ init.c:151:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Offset(busy_cursor), XtRString, "watch"}, ^ init.c:152:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"busyPointerColor", "BusyPointerColor", XtRPixel, sizeof(Pixel), ^ init.c:152:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"busyPointerColor", "BusyPointerColor", XtRPixel, sizeof(Pixel), ^ In file included from xmh.h:35:0, from init.c:32: /usr/local/include/X11/Intrinsic.h:1655:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtDefaultForeground "XtDefaultForeground" ^ init.c:153:42: note: in expansion of macro 'XtDefaultForeground' Offset(busy_pointer_color), XtRString, XtDefaultForeground}, ^ init.c:154:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"commandButtonCount", "CommandButtonCount", XtRInt, sizeof(int), ^ init.c:154:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"commandButtonCount", "CommandButtonCount", XtRInt, sizeof(int), ^ init.c:156:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"appDefaultsVersion", "AppDefaultsVersion", XtRInt, sizeof(int), ^ init.c:156:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"appDefaultsVersion", "AppDefaultsVersion", XtRInt, sizeof(int), ^ init.c:158:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"banner", "Banner", XtRString, sizeof(char *), ^ init.c:158:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"banner", "Banner", XtRString, sizeof(char *), ^ In file included from xmh.h:32:0, from init.c:32: config.h:41:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define PACKAGE_STRING "xmh 1.0.3" ^ xmh.h:33:21: note: in expansion of macro 'PACKAGE_STRING' #define XMH_VERSION PACKAGE_STRING ^ init.c:159:30: note: in expansion of macro 'XMH_VERSION' Offset(banner), XtRString, XMH_VERSION}, ^ init.c:160:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"wmProtocolsTranslations", "WMProtocolsTranslations", ^ init.c:160:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"wmProtocolsTranslations", "WMProtocolsTranslations", ^ init.c:163:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "WM_PROTOCOLS: XmhWMProtocols()\n"} ^ init.c:169:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-debug", "debug", XrmoptionNoArg, "on"}, ^ init.c:169:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-debug", "debug", XrmoptionNoArg, "on"}, ^ init.c:169:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-debug", "debug", XrmoptionNoArg, "on"}, ^ init.c:170:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-flag", "mailWaitingFlag", XrmoptionNoArg, "on"}, ^ init.c:170:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-flag", "mailWaitingFlag", XrmoptionNoArg, "on"}, ^ init.c:170:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-flag", "mailWaitingFlag", XrmoptionNoArg, "on"}, ^ init.c:171:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-initial","initialFolder", XrmoptionSepArg, NULL}, ^ init.c:171:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-initial","initialFolder", XrmoptionSepArg, NULL}, ^ init.c:172:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-path", "mailPath", XrmoptionSepArg, NULL}, ^ init.c:172:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"-path", "mailPath", XrmoptionSepArg, NULL}, ^ init.c: In function '_IOErrorHandler': init.c:218:10: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Cannot continue from server error."); ^ In file included from xmh.h:149:0, from init.c:32: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ init.c: In function 'PopupAppDefaultsWarning': init.c:231:1: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "The minimum application default resources\n\ ^ In file included from xmh.h:149:0, from init.c:32: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ init.c: In function 'InitializeWorld': init.c:274:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhClose", XmhClose}, ^ init.c:275:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhComposeMessage", XmhComposeMessage}, ^ init.c:276:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhWMProtocols", XmhWMProtocols}, ^ init.c:280:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhOpenFolder", XmhOpenFolder}, ^ init.c:281:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhOpenFolderInNewWindow", XmhOpenFolderInNewWindow}, ^ init.c:282:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhCreateFolder", XmhCreateFolder}, ^ init.c:283:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhDeleteFolder", XmhDeleteFolder}, ^ init.c:287:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPushFolder", XmhPushFolder}, ^ init.c:288:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPopFolder", XmhPopFolder}, ^ init.c:289:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPopupFolderMenu", XmhPopupFolderMenu}, ^ init.c:290:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhSetCurrentFolder", XmhSetCurrentFolder}, ^ init.c:291:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhLeaveFolderButton", XmhLeaveFolderButton}, ^ init.c:292:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhCheckForNewMail", XmhCheckForNewMail}, ^ init.c:296:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhIncorporateNewMail", XmhIncorporateNewMail}, ^ init.c:297:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhCommitChanges", XmhCommitChanges}, ^ init.c:298:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPackFolder", XmhPackFolder}, ^ init.c:299:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhSortFolder", XmhSortFolder}, ^ init.c:300:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhForceRescan", XmhForceRescan}, ^ init.c:301:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhReloadSeqLists", XmhReloadSeqLists}, ^ init.c:305:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewNextMessage", XmhViewNextMessage}, ^ init.c:306:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewPreviousMessage", XmhViewPreviousMessage}, ^ init.c:307:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhMarkDelete", XmhMarkDelete}, ^ init.c:308:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhMarkMove", XmhMarkMove}, ^ init.c:309:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhMarkCopy", XmhMarkCopy}, ^ init.c:310:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhUnmark", XmhUnmark}, ^ init.c:311:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewInNewWindow", XmhViewInNewWindow}, ^ init.c:312:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhReply", XmhReply}, ^ init.c:313:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhForward", XmhForward}, ^ init.c:314:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhUseAsComposition", XmhUseAsComposition}, ^ init.c:315:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPrint", XmhPrint}, ^ init.c:316:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhShellCommand", XmhShellCommand}, ^ init.c:320:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPickMessages", XmhPickMessages}, ^ init.c:321:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhOpenSequence", XmhOpenSequence}, ^ init.c:322:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhAddToSequence", XmhAddToSequence}, ^ init.c:323:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhRemoveFromSequence", XmhRemoveFromSequence}, ^ init.c:324:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhDeleteSequence", XmhDeleteSequence}, ^ init.c:328:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPushSequence", XmhPushSequence}, ^ init.c:329:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPopSequence", XmhPopSequence}, ^ init.c:333:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhCloseView", XmhCloseView}, ^ init.c:334:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewReply", XmhViewReply}, ^ init.c:335:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewForward", XmhViewForward}, ^ init.c:336:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewUseAsComposition", XmhViewUseAsComposition}, ^ init.c:337:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhEditView", XmhEditView}, ^ init.c:338:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhSaveView", XmhSaveView}, ^ init.c:339:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPrintView", XmhPrintView}, ^ init.c:340:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhViewMarkDelete", XmhViewMarkDelete}, ^ init.c:345:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhResetCompose", XmhResetCompose}, ^ init.c:347:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhSave", XmhSave}, ^ init.c:348:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhSend", XmhSend}, ^ init.c:349:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhInsert", XmhInsert}, ^ init.c:353:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhPromptOkayAction", XmhPromptOkayAction}, ^ init.c:357:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"XmhCancelPick", XmhWMProtocols} ^ init.c:404:39: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] app_resources.checkpoint_name_format = xmhCkpDefault; ^ init.c:411:24: warning: passing argument 2 of 'myfopen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = myfopen(ptr, "r"); ^ In file included from xmh.h:149:0, from init.c:32: externs.h:144:15: note: expected 'char *' but argument is of type 'const char *' extern FILE * myfopen (char *, char *); ^ --- main.o --- mv -f .deps/main.Tpo .deps/main.Po --- menu.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT menu.o -MD -MP -MF .deps/menu.Tpo -c -o menu.o menu.c In file included from xmh.h:35:0, from menu.c:30: menu.c: In function 'AttachMenuToButton': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ menu.c:44:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNmenuName, XtNewString(menu_name)); ^ In file included from xmh.h:51:0, from menu.c:30: menu.c: In function 'DoRememberMenuSelection': /usr/local/include/X11/Xaw/SimpleMenu.h:94:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNpopupOnEntry "popupOnEntry" ^ menu.c:56:4: note: in expansion of macro 'XtNpopupOnEntry' { XtNpopupOnEntry, (XtArgVal) NULL }, ^ In file included from xmh.h:35:0, from menu.c:30: menu.c: In function 'ToggleMenuItem': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ menu.c:82:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNleftBitmap, (state ? MenuItemBitmap : None)); ^ mv -f .deps/menu.Tpo .deps/menu.Po --- miscfuncs.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT miscfuncs.o -MD -MP -MF .deps/miscfuncs.Tpo -c -o miscfuncs.o miscfuncs.c --- bbox.o --- mv -f .deps/bbox.Tpo .deps/bbox.Po --- mlist.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT mlist.o -MD -MP -MF .deps/mlist.Tpo -c -o mlist.o mlist.c --- command.o --- mv -f .deps/command.Tpo .deps/command.Po --- msg.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT msg.o -MD -MP -MF .deps/msg.Tpo -c -o msg.o msg.c --- miscfuncs.o --- mv -f .deps/miscfuncs.Tpo .deps/miscfuncs.Po --- pick.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT pick.o -MD -MP -MF .deps/pick.Tpo -c -o pick.o pick.c --- msg.o --- In file included from xmh.h:148:0, from msg.c:33: msg.c: In function 'RedisplayMsg': globals.h:124:59: warning: passing argument 2 of 'CreateFileSource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] (NullSource = (Widget) CreateFileSource(scrn->viewlabel, "/dev/null", False))) ^ msg.c:163:41: note: in expansion of macro 'PNullSource' XawTextSetSource(scrn->viewwidget, PNullSource, ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:78:17: note: expected 'String {aka char *}' but argument is of type 'const char *' extern Widget CreateFileSource (Widget, String, Boolean); ^ In file included from xmh.h:148:0, from msg.c:33: msg.c: In function 'RemoveMsgConfirmed': globals.h:124:59: warning: passing argument 2 of 'CreateFileSource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] (NullSource = (Widget) CreateFileSource(scrn->viewlabel, "/dev/null", False))) ^ msg.c:279:40: note: in expansion of macro 'PNullSource' XawTextSetSource(scrn->viewwidget, PNullSource, (XawTextPosition) 0); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:78:17: note: expected 'String {aka char *}' but argument is of type 'const char *' extern Widget CreateFileSource (Widget, String, Boolean); ^ In file included from xmh.h:148:0, from msg.c:33: msg.c: In function 'SetScrnNewMsg': globals.h:124:59: warning: passing argument 2 of 'CreateFileSource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] (NullSource = (Widget) CreateFileSource(scrn->viewlabel, "/dev/null", False))) ^ msg.c:296:37: note: in expansion of macro 'PNullSource' XawTextSetSource(scrn->viewwidget, PNullSource, (XawTextPosition) 0); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:78:17: note: expected 'String {aka char *}' but argument is of type 'const char *' extern Widget CreateFileSource (Widget, String, Boolean); ^ msg.c: In function 'SetScrn': msg.c:377:27: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (i >= num_scrns) Punt("Couldn't find scrn in SetScrn!"); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ msg.c: In function 'MsgSetFate': msg.c:450:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] block.ptr = "+"; ^ msg.c:453:30: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case Fignore: block.ptr = " "; break; ^ msg.c:454:29: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case Fcopy: block.ptr = "C"; break; ^ msg.c:455:29: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case Fmove: block.ptr = "^"; break; ^ msg.c:456:30: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case Fdelete: block.ptr = "D"; break; ^ msg.c: In function 'MsgSend': msg.c:646:44: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] from = FOpenAndCheck(MsgFileName(msg), "r"); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ msg.c:649:29: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] to = FOpenAndCheck(str, "w"); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ msg.c:655:35: warning: passing argument 2 of 'strncmpIgnoringCase' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (strncmpIgnoringCase(ptr, "sendwidth:", 10) == 0) { ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:171:12: note: expected 'char *' but argument is of type 'const char *' extern int strncmpIgnoringCase(char *, char *, int); ^ msg.c:659:35: warning: passing argument 2 of 'strncmpIgnoringCase' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (strncmpIgnoringCase(ptr, "sendbreakwidth:", 15) == 0) { ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:171:12: note: expected 'char *' but argument is of type 'const char *' extern int strncmpIgnoringCase(char *, char *, int); ^ msg.c:708:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "send"; ^ msg.c:709:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-push"; ^ msg.c: In function 'MsgLoadComposition': msg.c:730:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "comp"; ^ msg.c:731:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-file"; ^ msg.c:733:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3] = "-nowhatnowproc"; ^ msg.c:734:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-nodraftfolder"; ^ msg.c:742:8: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Error reading in MsgLoadComposition!"); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ msg.c:746:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] blankcomp = "To: \n--------\n"; ^ msg.c:753:7: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Error writing in MsgLoadComposition!"); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ msg.c: In function 'MsgLoadReply': msg.c:777:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "repl"; ^ msg.c:781:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3] = "-nowhatnowproc"; ^ msg.c:782:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-nodraftfolder"; ^ msg.c: In function 'MsgLoadForward': msg.c:814:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "forw"; ^ msg.c:820:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2 + i] = "-nowhatnowproc"; ^ msg.c:821:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3 + i] = "-nodraftfolder"; ^ msg.c: In function 'MsgCheckPoint': msg.c:859:2: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] (void) sprintf(file, app_resources.checkpoint_name_format, msg->msgid); ^ msg.c:864:10: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] msg->msgid); ^ msg.c: In function 'XmhInsert': msg.c:902:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "/bin/sh"; ^ msg.c:903:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-c"; ^ msg.c:920:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "Insertion failed!"); ^ In file included from xmh.h:149:0, from msg.c:33: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ In file included from xmh.h:35:0, from msg.c:33: msg.c: In function 'CreateFileSource': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ msg.c:938:3: note: in expansion of macro 'XtSetArg' XtSetArg(arglist[num_args], XtNtype, XawAsciiFile); num_args++; ^ --- mlist.o --- mv -f .deps/mlist.Tpo .deps/mlist.Po --- popup.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT popup.o -MD -MP -MF .deps/popup.Tpo -c -o popup.o popup.c --- init.o --- mv -f .deps/init.Tpo .deps/init.Po --- screen.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT screen.o -MD -MP -MF .deps/screen.Tpo -c -o screen.o screen.c --- pick.o --- pick.c: In function 'InitPick': pick.c:102:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] TypeName[RTfrom] = "From:"; ^ pick.c:103:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] TypeName[RTto] = "To:"; ^ pick.c:104:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] TypeName[RTcc] = "Cc:"; ^ pick.c:105:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] TypeName[RTdate] = "Date:"; ^ pick.c:106:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] TypeName[RTsubject] = "Subject:"; ^ pick.c:107:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] TypeName[RTsearch] = "Search:"; ^ In file included from xmh.h:35:0, from pick.c:31: pick.c: In function 'AddToggle': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ pick.c:174:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[n], XtNstate, initial_state); n++; ^ /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ pick.c:175:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[n], XtNradioGroup, radio_group); n++; ^ /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ pick.c:176:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[n], XtNradioData, radio_data); n++; ^ pick.c: In function 'ExecRowOr': pick.c:225:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "or", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:226:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:227:20: warning: passing argument 2 of 'AddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddButton(row, "Or", ExecRowOr); ^ pick.c:148:13: note: expected 'char *' but argument is of type 'const char *' static void AddButton(RowList row, char *text, void (*func)(XMH_CB_ARGS)) ^ pick.c: In function 'ParseRow': pick.c:288:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-not"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:289:14: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-lbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:293:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-from"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:296:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-to"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:299:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-cc"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:302:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-date"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:305:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-subject"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:308:18: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-search"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:318:17: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-or"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:323:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-rbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:324:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-and"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c: In function 'ParseGroup': pick.c:338:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-rbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:339:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-or"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:340:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-lbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c: In function 'ExecOK': pick.c:375:6: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Can't create a sequence called \"all\"."); ^ In file included from xmh.h:149:0, from pick.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ pick.c:389:16: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("pick"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:393:16: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-sequence"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:396:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-zero"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:398:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-nozero"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:402:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-datefield"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:408:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-after"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:410:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-and"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:415:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-before"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:417:13: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-and"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:420:16: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-lbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:421:16: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AppendArgv("-lbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ pick.c:426:27: warning: passing argument 1 of 'AppendArgv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (found) AppendArgv("-rbrace"); ^ pick.c:250:13: note: expected 'char *' but argument is of type 'const char *' static void AppendArgv(char *ptr) ^ In file included from /usr/local/include/X11/Xaw/Dialog.h:51:0, from xmh.h:46, from pick.c:31: pick.c: In function 'CreateWidget': /usr/local/include/X11/Xaw/Form.h:98:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNfromHoriz "fromHoriz" ^ pick.c:465:3: note: in expansion of macro 'XtNfromHoriz' {XtNfromHoriz, (XtArgVal)NULL}, ^ /usr/local/include/X11/Xaw/Form.h:102:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNresizable "resizable" ^ pick.c:466:3: note: in expansion of macro 'XtNresizable' {XtNresizable, (XtArgVal)TRUE}, ^ /usr/local/include/X11/Xaw/Form.h:96:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNleft "left" ^ pick.c:468:3: note: in expansion of macro 'XtNleft' {XtNleft, (XtArgVal) XtChainLeft}, ^ /usr/local/include/X11/Xaw/Form.h:95:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNbottom "bottom" ^ pick.c:469:3: note: in expansion of macro 'XtNbottom' {XtNbottom, (XtArgVal) XtChainTop}, ^ /usr/local/include/X11/Xaw/Form.h:97:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNright "right" ^ pick.c:470:3: note: in expansion of macro 'XtNright' {XtNright, (XtArgVal) XtChainLeft}, ^ pick.c: In function 'AddRow': /usr/local/include/X11/Xaw/Form.h:99:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNfromVert "fromVert" ^ pick.c:527:3: note: in expansion of macro 'XtNfromVert' {XtNfromVert, (XtArgVal) NULL}, ^ /usr/local/include/X11/Xaw/Form.h:102:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNresizable "resizable" ^ pick.c:528:3: note: in expansion of macro 'XtNresizable' {XtNresizable, (XtArgVal) TRUE}, ^ /usr/local/include/X11/Xaw/Form.h:96:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNleft "left" ^ pick.c:530:3: note: in expansion of macro 'XtNleft' {XtNleft, (XtArgVal) XtChainLeft}, ^ /usr/local/include/X11/Xaw/Form.h:95:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNbottom "bottom" ^ pick.c:531:3: note: in expansion of macro 'XtNbottom' {XtNbottom, (XtArgVal) XtChainTop}, ^ /usr/local/include/X11/Xaw/Form.h:97:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNright "right" ^ pick.c:532:3: note: in expansion of macro 'XtNright' {XtNright, (XtArgVal) XtChainLeft} ^ pick.c:551:20: warning: passing argument 2 of 'AddToggle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddToggle(row, "Pick", TRUE, (Widget)NULL, (XtPointer)(&true_data)); ^ pick.c:161:13: note: expected 'char *' but argument is of type 'const char *' static void AddToggle( ^ pick.c:552:20: warning: passing argument 2 of 'AddToggle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddToggle(row, "Skip", FALSE, row->wlist[row->numwidgets - 1]->widget, ^ pick.c:161:13: note: expected 'char *' but argument is of type 'const char *' static void AddToggle( ^ pick.c:557:20: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:558:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:559:20: warning: passing argument 2 of 'AddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddButton(row, "Or", ExecRowOr); ^ pick.c:148:13: note: expected 'char *' but argument is of type 'const char *' static void AddButton(RowList row, char *text, void (*func)(XMH_CB_ARGS)) ^ In file included from /usr/local/include/X11/Xaw/Dialog.h:51:0, from xmh.h:46, from pick.c:31: pick.c: In function 'AddGroup': /usr/local/include/X11/Xaw/Form.h:99:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNfromVert "fromVert" ^ pick.c:569:3: note: in expansion of macro 'XtNfromVert' {XtNfromVert, (XtArgVal) NULL}, ^ /usr/local/include/X11/Xaw/Form.h:102:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNresizable "resizable" ^ pick.c:570:3: note: in expansion of macro 'XtNresizable' {XtNresizable, (XtArgVal) TRUE}, ^ /usr/local/include/X11/Xaw/Form.h:96:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNleft "left" ^ pick.c:572:3: note: in expansion of macro 'XtNleft' {XtNleft, (XtArgVal) XtChainLeft}, ^ /usr/local/include/X11/Xaw/Form.h:95:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNbottom "bottom" ^ pick.c:573:3: note: in expansion of macro 'XtNbottom' {XtNbottom, (XtArgVal) XtChainTop}, ^ /usr/local/include/X11/Xaw/Form.h:97:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNright "right" ^ pick.c:574:3: note: in expansion of macro 'XtNright' {XtNright, (XtArgVal) XtChainLeft} ^ pick.c: In function 'AddDetailGroup': pick.c:608:16: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "- or -", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:614:20: warning: passing argument 2 of 'AddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddButton(row, "- Or -", ExecGroupOr); ^ pick.c:148:13: note: expected 'char *' but argument is of type 'const char *' static void AddButton(RowList row, char *text, void (*func)(XMH_CB_ARGS)) ^ pick.c: In function 'AddGeneralGroup': pick.c:630:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "Creating sequence:", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:631:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:632:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "with msgs from sequence:", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:633:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:636:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "Date range:", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:637:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:638:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, " - ", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:639:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:640:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "Date field:", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:641:23: warning: passing argument 2 of 'AddTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddTextEntry(row, ""); ^ pick.c:183:13: note: expected 'char *' but argument is of type 'const char *' static void AddTextEntry(RowList row, char *str) ^ pick.c:644:19: warning: passing argument 2 of 'AddLabel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddLabel(row, "Clear old entries from sequence?", FALSE); ^ pick.c:132:13: note: expected 'char *' but argument is of type 'const char *' static void AddLabel(RowList row, char *text, int usestd) ^ pick.c:645:20: warning: passing argument 2 of 'AddToggle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddToggle(row, "Yes", TRUE, (Widget) NULL, (XtPointer)(&true_data)); ^ pick.c:161:13: note: expected 'char *' but argument is of type 'const char *' static void AddToggle( ^ pick.c:646:20: warning: passing argument 2 of 'AddToggle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddToggle(row, "No", FALSE, row->wlist[row->numwidgets - 1]->widget, ^ pick.c:161:13: note: expected 'char *' but argument is of type 'const char *' static void AddToggle( ^ pick.c:650:20: warning: passing argument 2 of 'AddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddButton(row, "OK", ExecOK); ^ pick.c:148:13: note: expected 'char *' but argument is of type 'const char *' static void AddButton(RowList row, char *text, void (*func)(XMH_CB_ARGS)) ^ pick.c:651:20: warning: passing argument 2 of 'AddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddButton(row, "Cancel", ExecCancel); ^ pick.c:148:13: note: expected 'char *' but argument is of type 'const char *' static void AddButton(RowList row, char *text, void (*func)(XMH_CB_ARGS)) ^ pick.c: In function 'CleanForm': pick.c:679:30: warning: passing argument 2 of 'ChangeTextEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ChangeTextEntry(entry, ""); ^ pick.c:200:13: note: expected 'char *' but argument is of type 'const char *' static void ChangeTextEntry(FormEntry entry, char *str) ^ In file included from xmh.h:54:0, from pick.c:31: pick.c: In function 'MakeAForm': /usr/local/include/X11/Xaw/Paned.h:132:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNmin "min" ^ pick.c:692:3: note: in expansion of macro 'XtNmin' {XtNmin, (XtArgVal)50}, ^ /usr/local/include/X11/Xaw/Paned.h:133:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNmax "max" ^ pick.c:693:3: note: in expansion of macro 'XtNmax' {XtNmax, (XtArgVal)1500} ^ pick.c: In function 'AddPick': pick.c:728:37: warning: passing argument 2 of 'CreateTitleBar' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pick->label = CreateTitleBar(scrn, "pickTitlebar"); ^ In file included from xmh.h:149:0, from pick.c:31: externs.h:164:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTitleBar (Scrn, char *); ^ --- popup.o --- popup.c:42:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNconfirm = "confirm"; ^ popup.c:43:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNdialog = "dialog"; ^ popup.c:44:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNerror = "error"; ^ popup.c:45:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNnotice = "notice"; ^ popup.c:46:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNokay = "okay"; ^ popup.c:47:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNprompt = "prompt"; ^ popup.c:48:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static String XmhNvalue = "value"; ^ popup.c: In function 'WMDeletePopup': popup.c:224:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] buttonName = "*no"; ^ popup.c:226:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] buttonName = "*cancel"; ^ popup.c:228:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] buttonName = "*confirm"; ^ popup.c:230:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] buttonName = "*OK"; ^ In file included from xmh.h:35:0, from popup.c:30: popup.c: In function 'PopupPrompt': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ popup.c:290:5: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNresizable, True); ^ popup.c: In function 'PopupNotice': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ popup.c:376:5: note: in expansion of macro 'XtSetArg' XtSetArg( args[1], XtNdisplayCaret, False); ^ popup.c: In function 'PopupWarningHandler': popup.c:499:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] par[9] = "(truncated)"; ^ popup.c:500:26: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] (void) sprintf(message, buffer, par[0], par[1], par[2], par[3], ^ popup.c:511:2: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stderr, ptr); ^ --- screen.o --- screen.c:34:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"open", DoOpenFolder}, ^ screen.c:35:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"openInNew", DoOpenFolderInNewWindow}, ^ screen.c:36:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"create", DoCreateFolder}, ^ screen.c:37:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"delete", DoDeleteFolder}, ^ screen.c:38:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"line", (XtCallbackProc) NULL}, ^ screen.c:39:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"close", DoClose}, ^ screen.c:43:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"inc", DoIncorporateNewMail}, ^ screen.c:44:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"commit", DoCommit}, ^ screen.c:45:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"pack", DoPack}, ^ screen.c:46:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sort", DoSort}, ^ screen.c:47:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"rescan", DoForceRescan}, ^ screen.c:51:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"compose", DoComposeMessage}, ^ screen.c:52:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"next", DoNextView}, ^ screen.c:53:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"prev", DoPrevView}, ^ screen.c:54:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"delete", DoDelete}, ^ screen.c:55:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"move", DoMove}, ^ screen.c:56:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"copy", DoCopy}, ^ screen.c:57:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"unmark", DoUnmark}, ^ screen.c:58:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"viewNew", DoViewNew}, ^ screen.c:59:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"reply", DoReply}, ^ screen.c:60:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"forward", DoForward}, ^ screen.c:61:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"useAsComp", DoTocUseAsComp}, ^ screen.c:62:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"print", DoPrint}, ^ screen.c:66:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"pick", DoPickMessages}, ^ screen.c:67:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"openSeq", DoOpenSeq}, ^ screen.c:68:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"addToSeq", DoAddToSeq}, ^ screen.c:69:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"removeFromSeq", DoRemoveFromSeq}, ^ screen.c:70:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"deleteSeq", DoDeleteSeq}, ^ screen.c:71:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"line", (XtCallbackProc) NULL}, ^ screen.c:72:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"all", DoSelectSequence}, ^ screen.c:76:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"reply", DoViewReply}, ^ screen.c:77:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"forward", DoViewForward}, ^ screen.c:78:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"useAsComp", DoViewUseAsComposition}, ^ screen.c:79:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"edit", DoEditView}, ^ screen.c:80:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"save", DoSaveView}, ^ screen.c:81:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"print", DoPrintView}, ^ screen.c:85:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"reverse", DoReverseReadOrder}, ^ screen.c:89:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"folderButton", "folderMenu", XMH_FOLDER, folderMenu, ^ screen.c:89:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"folderButton", "folderMenu", XMH_FOLDER, folderMenu, ^ screen.c:91:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocButton", "tocMenu", XMH_TOC, tocMenu, ^ screen.c:91:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"tocButton", "tocMenu", XMH_TOC, tocMenu, ^ screen.c:93:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"messageButton", "messageMenu", XMH_MESSAGE, messageMenu, ^ screen.c:93:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"messageButton", "messageMenu", XMH_MESSAGE, messageMenu, ^ screen.c:95:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sequenceButton", "sequenceMenu", XMH_SEQUENCE, sequenceMenu, ^ screen.c:95:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"sequenceButton", "sequenceMenu", XMH_SEQUENCE, sequenceMenu, ^ screen.c:97:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"viewButton", "viewMenu", XMH_VIEW, viewMenu, ^ screen.c:97:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"viewButton", "viewMenu", XMH_VIEW, viewMenu, ^ screen.c:99:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"optionButton", "optionMenu", XMH_OPTION, optionMenu, ^ screen.c:99:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {"optionButton", "optionMenu", XMH_OPTION, optionMenu, ^ screen.c: In function 'FillViewButtons': screen.c:110:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "close", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:111:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "reply", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:112:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "forward", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:113:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "useAsComp", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:114:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "edit", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:115:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "save", commandWidgetClass, False); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:116:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "print", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:117:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "delete", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c: In function 'FillCompButtons': screen.c:126:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "close", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:127:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "send", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:128:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "reset", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:129:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "compose", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:130:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "save", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ screen.c:131:30: warning: passing argument 2 of 'BBoxAddButton' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxAddButton(buttonbox, "insert", commandWidgetClass, True); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:42:14: note: expected 'char *' but argument is of type 'const char *' extern void BBoxAddButton (ButtonBox, char *, WidgetClass, Boolean); ^ In file included from xmh.h:35:0, from screen.c:31: screen.c: In function 'MakeCommandMenu': /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ screen.c:176:20: note: in expansion of macro 'XtSetArg' if (indent) { XtSetArg(args[n], XtNleftMargin, 18); n++; } ^ In file included from /usr/local/include/X11/Xaw/AsciiText.h:63:0, from xmh.h:42, from screen.c:31: screen.c: In function 'MakeTocAndView': /usr/local/include/X11/Xaw/Text.h:189:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNselectTypes "selectTypes" ^ screen.c:203:4: note: in expansion of macro 'XtNselectTypes' { XtNselectTypes, (XtArgVal) sarray}, ^ /usr/local/include/X11/Xaw/Text.h:182:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNdisplayCaret "displayCaret" ^ screen.c:204:4: note: in expansion of macro 'XtNdisplayCaret' { XtNdisplayCaret, (XtArgVal) False} ^ screen.c:207:44: warning: passing argument 2 of 'BBoxCreate' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->mainbuttons = BBoxCreate(scrn, "menuBox"); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:41:18: note: expected 'char *' but argument is of type 'const char *' extern ButtonBox BBoxCreate (Scrn, char *); ^ screen.c:208:48: warning: passing argument 2 of 'CreateTitleBar' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->folderlabel = CreateTitleBar(scrn, "folderTitlebar"); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:164:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTitleBar (Scrn, char *); ^ screen.c:209:44: warning: passing argument 2 of 'BBoxCreate' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->folderbuttons = BBoxCreate(scrn, "folders"); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:41:18: note: expected 'char *' but argument is of type 'const char *' extern ButtonBox BBoxCreate (Scrn, char *); ^ screen.c:210:48: warning: passing argument 2 of 'CreateTitleBar' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->toclabel = CreateTitleBar(scrn, "tocTitlebar"); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:164:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTitleBar (Scrn, char *); ^ screen.c:211:42: warning: passing argument 2 of 'CreateTextSW' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->tocwidget = CreateTextSW(scrn, "toc", args, XtNumber(args)); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:163:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTextSW (Scrn, char *, ArgList, Cardinal); ^ screen.c:213:39: warning: passing argument 2 of 'BBoxCreate' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->miscbuttons = BBoxCreate(scrn, "commandBox"); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:41:18: note: expected 'char *' but argument is of type 'const char *' extern ButtonBox BBoxCreate (Scrn, char *); ^ screen.c:214:48: warning: passing argument 2 of 'CreateTitleBar' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewlabel = CreateTitleBar(scrn, "viewTitlebar"); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:164:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTitleBar (Scrn, char *); ^ screen.c:215:46: warning: passing argument 2 of 'CreateTextSW' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewwidget = CreateTextSW(scrn, "view", args, (Cardinal) 0); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:163:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTextSW (Scrn, char *, ArgList, Cardinal); ^ screen.c:243:7: warning: declaration of 'name' shadows a previous local [-Wshadow] char name[12]; ^ screen.c:197:12: note: shadowed declaration is here char *name; ^ screen.c: In function 'MakeView': screen.c:255:44: warning: passing argument 2 of 'CreateTitleBar' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewlabel = CreateTitleBar(scrn, "viewTitlebar"); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:164:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTitleBar (Scrn, char *); ^ screen.c:256:43: warning: passing argument 2 of 'CreateTextSW' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewwidget = CreateTextSW(scrn, "view", (ArgList)NULL, (Cardinal)0); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:163:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTextSW (Scrn, char *, ArgList, Cardinal); ^ screen.c:257:42: warning: passing argument 2 of 'BBoxCreate' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewbuttons = BBoxCreate(scrn, "viewButtons"); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:41:18: note: expected 'char *' but argument is of type 'const char *' extern ButtonBox BBoxCreate (Scrn, char *); ^ screen.c: In function 'MakeComp': screen.c:264:44: warning: passing argument 2 of 'CreateTitleBar' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewlabel = CreateTitleBar(scrn, "composeTitlebar"); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:164:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTitleBar (Scrn, char *); ^ screen.c:265:43: warning: passing argument 2 of 'CreateTextSW' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewwidget = CreateTextSW(scrn, "comp", (ArgList)NULL, (Cardinal)0); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:163:15: note: expected 'char *' but argument is of type 'const char *' extern Widget CreateTextSW (Scrn, char *, ArgList, Cardinal); ^ screen.c:266:42: warning: passing argument 2 of 'BBoxCreate' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] scrn->viewbuttons = BBoxCreate(scrn, "compButtons"); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:41:18: note: expected 'char *' but argument is of type 'const char *' extern ButtonBox BBoxCreate (Scrn, char *); ^ screen.c: In function 'ScrnFromWidget': screen.c:431:10: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("ScrnFromWidget failed!"); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ screen.c: In function 'EnableProperButtons': screen.c:464:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "inc", value); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:469:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "openSeq", value); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:470:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "addToSeq", value); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:471:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "removeFromSeq", value); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:472:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "deleteSeq", value); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:477:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "edit", value); ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:478:37: warning: passing argument 2 of 'SendMenuEntryEnableMsg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SendMenuEntryEnableMsg(button, "save", ^ In file included from xmh.h:149:0, from screen.c:31: externs.h:69:13: note: expected 'char *' but argument is of type 'const char *' extern void SendMenuEntryEnableMsg (Button, char *, int); ^ screen.c:483:35: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "edit", value); ^ screen.c:449:58: note: in definition of macro 'SetButton' if (value) BBoxEnable(BBoxFindButtonNamed(buttonbox, name)); \ ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:483:35: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "edit", value); ^ screen.c:450:53: note: in definition of macro 'SetButton' else BBoxDisable(BBoxFindButtonNamed(buttonbox, name)); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:484:35: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "save", scrn->msg != NULL && !value); ^ screen.c:449:58: note: in definition of macro 'SetButton' if (value) BBoxEnable(BBoxFindButtonNamed(buttonbox, name)); \ ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:484:35: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "save", scrn->msg != NULL && !value); ^ screen.c:450:53: note: in definition of macro 'SetButton' else BBoxDisable(BBoxFindButtonNamed(buttonbox, name)); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:490:32: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "send", changed || !reapable); ^ screen.c:449:58: note: in definition of macro 'SetButton' if (value) BBoxEnable(BBoxFindButtonNamed(buttonbox, name)); \ ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:490:32: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "send", changed || !reapable); ^ screen.c:450:53: note: in definition of macro 'SetButton' else BBoxDisable(BBoxFindButtonNamed(buttonbox, name)); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:491:32: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "save", changed || reapable); ^ screen.c:449:58: note: in definition of macro 'SetButton' if (value) BBoxEnable(BBoxFindButtonNamed(buttonbox, name)); \ ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:491:32: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "save", changed || reapable); ^ screen.c:450:53: note: in definition of macro 'SetButton' else BBoxDisable(BBoxFindButtonNamed(buttonbox, name)); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:492:32: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "insert", ^ screen.c:449:58: note: in definition of macro 'SetButton' if (value) BBoxEnable(BBoxFindButtonNamed(buttonbox, name)); \ ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:492:32: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetButton(scrn->viewbuttons, "insert", ^ screen.c:450:53: note: in definition of macro 'SetButton' else BBoxDisable(BBoxFindButtonNamed(buttonbox, name)); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:503:55: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxDisable( BBoxFindButtonNamed(scrn->viewbuttons, "send")); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:504:55: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxDisable( BBoxFindButtonNamed(scrn->viewbuttons, "save")); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ screen.c:505:55: warning: passing argument 2 of 'BBoxFindButtonNamed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BBoxDisable( BBoxFindButtonNamed(scrn->viewbuttons, "insert")); ^ In file included from xmh.h:151:0, from screen.c:31: bbox.h:50:16: note: expected 'char *' but argument is of type 'const char *' extern Button BBoxFindButtonNamed (ButtonBox, char *); ^ mv -f .deps/screen.Tpo .deps/screen.Po --- toc.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT toc.o -MD -MP -MF .deps/toc.Tpo -c -o toc.o toc.c toc.c: In function 'MakeSureFolderExists': toc.c:68:10: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Can't create new mail folder!"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c: In function 'MakeSureSubfolderExists': toc.c:95:11: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Can't create new xmh subfolder!"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c:102:7: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Can't create new xmh subfolder!"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c: In function 'LoadCheckFiles': toc.c:127:24: warning: passing argument 2 of 'myfopen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = myfopen(str, "r"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:144:15: note: expected 'char *' but argument is of type 'const char *' extern FILE * myfopen (char *, char *); ^ toc.c: In function 'TocInit': toc.c:169:11: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Can't create or read mail directory!"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c: In function 'CheckForNewMail': toc.c:243:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "msgchk"; ^ toc.c:244:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-nonotify"; ^ toc.c:245:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "nomail"; ^ toc.c:246:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3] = "-nodate"; ^ toc.c: In function 'NukeDirectory': toc.c:356:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "/bin/rm"; ^ toc.c:357:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-rf"; ^ toc.c: In function 'TocDeleteFolder': toc.c:384:21: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (w < 0) Punt("Couldn't find it in TocDeleteFolder!"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c: In function 'TocSetScrn': toc.c:419:11: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Couldn't find scrn in TocSetScrn!"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c: In function 'TocMakeNewMsg': toc.c:738:28: warning: passing argument 2 of 'TUAppendToc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] msg = TUAppendToc(toc, "#### empty\n"); ^ In file included from toc.c:33:0: tocutil.h:45:12: note: expected 'char *' but argument is of type 'const char *' extern Msg TUAppendToc (Toc, char *); ^ toc.c:740:23: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (looping++) Punt( "Cannot correct scan file" ); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ toc.c:747:22: warning: passing argument 1 of 'CopyFileAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] CopyFileAndCheck("/dev/null", MsgFileName(msg)); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:154:13: note: expected 'char *' but argument is of type 'const char *' extern void CopyFileAndCheck (char *, char *); ^ toc.c: In function 'TocIncorporate': toc.c:1044:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "inc"; ^ toc.c:1046:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-width"; ^ toc.c:1050:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-file"; ^ toc.c:1052:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[6] = "-truncate"; ^ toc.c:1061:28: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = FOpenAndCheck(file, "r"); ^ In file included from xmh.h:149:0, from toc.c:30: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ toc.c: In function 'TocMsgChanged': toc.c:1098:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "scan"; ^ toc.c:1102:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3] = "-width"; ^ toc.c:1105:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "-noheader"; ^ In file included from toc.c:30:0: toc.c: In function 'TocMsgFromId': toc.c:1141:13: warning: format not a string literal and no format arguments [-Wformat-security] DEBUG( str ) ^ xmh.h:72:29: note: in definition of macro 'DEBUG' {(void)fprintf(stderr, msg); (void)fflush(stderr);} ^ toc.c:1159:9: warning: format not a string literal and no format arguments [-Wformat-security] DEBUG( str ) ^ xmh.h:72:29: note: in definition of macro 'DEBUG' {(void)fprintf(stderr, msg); (void)fflush(stderr);} ^ toc.c: In function 'XmhPopSequence': toc.c:1200:12: warning: declaration of 'sequenceMenu' shadows a global declaration [-Wshadow] Widget sequenceMenu, selected, original; ^ In file included from xmh.h:148:0, from toc.c:30: globals.h:145:24: note: shadowed declaration is here extern XmhMenuEntryRec sequenceMenu[]; ^ --- msg.o --- mv -f .deps/msg.Tpo .deps/msg.Po --- tocfuncs.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT tocfuncs.o -MD -MP -MF .deps/tocfuncs.Tpo -c -o tocfuncs.o tocfuncs.c --- popup.o --- mv -f .deps/popup.Tpo .deps/popup.Po --- tocutil.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT tocutil.o -MD -MP -MF .deps/tocutil.Tpo -c -o tocutil.o tocutil.c --- tocfuncs.o --- tocfuncs.c: In function 'XmhShellCommand': tocfuncs.c:461:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "XmhShellCommand: no command given."); ^ In file included from xmh.h:149:0, from tocfuncs.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ tocfuncs.c:469:31: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "XmhShellCommand: command too long."); ^ In file included from xmh.h:149:0, from tocfuncs.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ In file included from tocfuncs.c:31:0: tocfuncs.c:496:10: warning: format not a string literal and no format arguments [-Wformat-security] DEBUG( str ); ^ xmh.h:72:29: note: in definition of macro 'DEBUG' {(void)fprintf(stderr, msg); (void)fflush(stderr);} ^ tocfuncs.c:498:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "/bin/sh"; ^ tocfuncs.c:499:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-c"; /* commands are read from the next argument */ ^ tocfuncs.c:507:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "XmhShellCommand: no messages selected."); ^ In file included from xmh.h:149:0, from tocfuncs.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^ tocfuncs.c: In function 'DoPack': tocfuncs.c:568:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "folder"; ^ tocfuncs.c:570:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-pack"; ^ tocfuncs.c:571:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3] = "-fast"; ^ tocfuncs.c: In function 'DoSort': tocfuncs.c:616:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "sortm"; ^ tocfuncs.c:618:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-noverbose"; ^ tocfuncs.c: In function 'DoPickMessages': tocfuncs.c:792:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] toseq = "temp"; ^ tocfuncs.c:796:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] toseq = "temp"; ^ tocfuncs.c: In function 'TwiddleSequence': tocfuncs.c:963:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "mark"; ^ tocfuncs.c:965:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-sequence"; ^ tocfuncs.c:969:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-add"; ^ tocfuncs.c:970:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "-nozero"; ^ tocfuncs.c:973:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-delete"; ^ tocfuncs.c:974:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "-nozero"; ^ tocfuncs.c:977:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-delete"; ^ tocfuncs.c:978:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "all"; ^ --- tocutil.o --- In file included from xmh.h:51:0, from tocutil.c:31: tocutil.c: In function 'TUCheckSequenceMenu': /usr/local/include/X11/Xaw/SimpleMenu.h:97:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNleftMargin "leftMargin" ^ tocutil.c:82:4: note: in expansion of macro 'XtNleftMargin' { XtNleftMargin, (XtArgVal) 18}, ^ tocutil.c: In function 'TUScanFileForToc': tocutil.c:142:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "scan"; ^ tocutil.c:144:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-width"; ^ tocutil.c:147:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-noheader"; ^ In file included from xmh.h:148:0, from tocutil.c:31: tocutil.c: In function 'TURedisplayToc': globals.h:124:59: warning: passing argument 2 of 'CreateFileSource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] (NullSource = (Widget) CreateFileSource(scrn->viewlabel, "/dev/null", False))) ^ tocutil.c:239:40: note: in expansion of macro 'PNullSource' XawTextSetSource(scrn->tocwidget, PNullSource, (XawTextPosition) 0); ^ In file included from xmh.h:149:0, from tocutil.c:31: externs.h:78:17: note: expected 'String {aka char *}' but argument is of type 'const char *' extern Widget CreateFileSource (Widget, String, Boolean); ^ tocutil.c: In function 'TULoadSeqLists': tocutil.c:270:24: warning: passing argument 2 of 'myfopen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = myfopen(str, "r"); ^ In file included from xmh.h:149:0, from tocutil.c:31: externs.h:144:15: note: expected 'char *' but argument is of type 'const char *' extern FILE * myfopen (char *, char *); ^ tocutil.c: In function 'TULoadTocFile': tocutil.c:376:40: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = FOpenAndCheck(toc->scanfile, "r"); ^ In file included from xmh.h:149:0, from tocutil.c:31: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^ In file included from xmh.h:35:0, from tocutil.c:31: /usr/local/include/X11/Intrinsic.h:1152:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) ^ tocutil.c:430:2: note: in expansion of macro 'XtSetArg' XtSetArg(args[0], XtNtoc, toc); ^ --- folder.o --- mv -f .deps/folder.Tpo .deps/folder.Po --- tsource.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT tsource.o -MD -MP -MF .deps/tsource.Tpo -c -o tsource.o tsource.c --- pick.o --- mv -f .deps/pick.Tpo .deps/pick.Po --- util.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c --- tsource.o --- In file included from tocintrnl.h:37:0, from tsource.c:32: tsource.h:64:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtNtoc "toc" ^ tsource.c:47:6: note: in expansion of macro 'XtNtoc' {XtNtoc, XtCToc, XtRPointer, sizeof(caddr_t), ^ tsource.h:63:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define XtCToc "Toc" ^ tsource.c:47:14: note: in expansion of macro 'XtCToc' {XtNtoc, XtCToc, XtRPointer, sizeof(caddr_t), ^ tsource.c:64:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] /* class_name */ "TocSrc", ^ tsource.c: In function 'MsgFromPosition': tsource.c:143:7: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Punt("Error in MsgFromPosition!"); ^ In file included from xmh.h:149:0, from tsource.c:31: externs.h:142:13: note: expected 'char *' but argument is of type 'const char *' extern void Punt (char *); ^ tsource.c: In function 'Read': tsource.c:178:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] block->ptr = ""; ^ --- util.o --- util.c: In function 'SysErrorMsg': util.c:46:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return (s ? s : "no such error"); ^ util.c: In function 'myclose': util.c:89:30: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (close(fid) < 0) Punt("Error in myclose!"); ^ util.c:51:6: note: expected 'char *' but argument is of type 'const char *' void Punt(char *str) ^ util.c: In function 'myfclose': util.c:97:32: warning: passing argument 1 of 'Punt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (fclose(file) < 0) Punt("Error in myfclose!"); ^ util.c:51:6: note: expected 'char *' but argument is of type 'const char *' void Punt(char *str) ^ util.c: In function 'Punt': util.c:51:6: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] --- tsource.o --- mv -f .deps/tsource.Tpo .deps/tsource.Po --- viewfuncs.o --- cc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -MT viewfuncs.o -MD -MP -MF .deps/viewfuncs.Tpo -c -o viewfuncs.o viewfuncs.c viewfuncs.c: In function 'DoPrintView': viewfuncs.c:253:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "/bin/sh"; ^ viewfuncs.c:254:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-c"; /* commands are read from the next argument */ ^ --- util.o --- mv -f .deps/util.Tpo .deps/util.Po --- viewfuncs.o --- mv -f .deps/viewfuncs.Tpo .deps/viewfuncs.Po --- tocutil.o --- mv -f .deps/tocutil.Tpo .deps/tocutil.Po --- tocfuncs.o --- mv -f .deps/tocfuncs.Tpo .deps/tocfuncs.Po --- toc.o --- mv -f .deps/toc.Tpo .deps/toc.Po --- xmh --- cc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include -D_THREAD_SAFE -D_BSD_SOURCE -pipe -O2 -fno-strict-aliasing -o xmh bbox.o command.o compfuncs.o folder.o init.o main.o menu.o miscfuncs.o mlist.o msg.o pick.o popup.o screen.o toc.o tocfuncs.o tocutil.o tsource.o util.o viewfuncs.o -L/usr/local/lib -lXaw7 -lXmu -lXt -lX11 =========================================================================== =================================================== ===> xmh-1.0.3 depends on executable: repl - not found ===> Installing existing package /packages/All/nmh-1.6.txz Installing nmh-1.6... `-- Installing ncurses-6.0_5... `-- Extracting ncurses-6.0_5: .......... done Extracting nmh-1.6: .......... done Message from ncurses-6.0_5: ===> NOTICE: The ncurses port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from nmh-1.6: ============================================================= Some files you might need to customize include the following: mhn.defaults - adjust the programs used to handle various MIME content types. mts.conf - adjust the "servers" setting if you don't have a locally installed sendmail (or other MTA). You may also find interesting freely avaiable book about nmh: http://rand-mh.sourceforge.net/book/ ============================================================= ===> xmh-1.0.3 depends on executable: repl - found ===> Returning to build of xmh-1.0.3 ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found ===> xmh-1.0.3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - found =========================================================================== =================================================== ===> Staging for xmh-1.0.3 ===> Generating temporary packing list Making install in man /bin/mkdir -p '/wrkdirs/x11/xmh/stage/usr/local/man/man1' install -m 0644 xmh.1 '/wrkdirs/x11/xmh/stage/usr/local/man/man1' /bin/mkdir -p '/wrkdirs/x11/xmh/stage/usr/local/bin' install -s -m 555 xmh '/wrkdirs/x11/xmh/stage/usr/local/bin' /bin/mkdir -p '/wrkdirs/x11/xmh/stage/usr/local/share/X11/app-defaults' install -m 0644 app-defaults/Xmh '/wrkdirs/x11/xmh/stage/usr/local/share/X11/app-defaults' ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===> Building package for xmh-1.0.3 file sizes/checksums [3]: . done packing files [3]: . done packing directories [0]: . done =========================================================================== => Cleaning up wrkdir ===> Cleaning for xmh-1.0.3 build of x11/xmh ended at Sun Oct 9 16:13:01 PDT 2016 build time: 00:00:18