>>> xapp_xmh 1.0.3 Extracting bzcat /data/buildroot/buildroot-test/instance-0/dl/xapp_xmh/xmh-1.0.3.tar.bz2 | /data/buildroot/buildroot-test/instance-0/output/host/bin/tar --strip-components=1 -C /data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3 -xf - >>> xapp_xmh 1.0.3 Patching >>> xapp_xmh 1.0.3 Updating config.sub and config.guess for file in config.guess config.sub; do for i in $(find /data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3 -name $file); do cp support/gnuconfig/$file $i; done; done >>> xapp_xmh 1.0.3 Patching libtool >>> xapp_xmh 1.0.3 Configuring (cd /data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/ && rm -rf config.cache && PATH="/data/buildroot/buildroot-test/instance-0/output/host/bin:/data/buildroot/buildroot-test/instance-0/output/host/sbin:/data/buildroot/buildroot-test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" AR="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-ar" AS="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-as" LD="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-ld" NM="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-nm" CC="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc" GCC="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc" CPP="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-cpp" CXX="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-g++" FC="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gfortran" F77="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gfortran" RANLIB="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-ranlib" READELF="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-readelf" STRIP="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-strip" OBJCOPY="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-objcopy" OBJDUMP="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/data/buildroot/buildroot-test/instance-0/output/host/include" CFLAGS_FOR_BUILD="-O2 -I/data/buildroot/buildroot-test/instance-0/output/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/data/buildroot/buildroot-test/instance-0/output/host/include" LDFLAGS_FOR_BUILD="-L/data/buildroot/buildroot-test/instance-0/output/host/lib -Wl,-rpath,/data/buildroot/buildroot-test/instance-0/output/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-as" DEFAULT_LINKER="/data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/data/buildroot/buildroot-test/instance-0/output/host/bin/pkg-config" STAGING_DIR="/data/buildroot/buildroot-test/instance-0/output/host/i686-buildroot-linux-uclibc/sysroot" INTLTOOL_PERL=/usr/bin/perl ac_cv_lbl_unaligned_fail=no ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec="" ac_cv_c_bigendian=no CONFIG_SITE=/dev/null ./configure --target=i686-buildroot-linux-uclibc --host=i686-buildroot-linux-uclibc --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix="" --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared ) configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --disable-nls, --disable-static, --enable-shared checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for i686-buildroot-linux-uclibc-strip... /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-strip checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for i686-buildroot-linux-uclibc-gcc... /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc 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... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc accepts -g... yes checking for /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc option to accept ISO C89... none needed checking whether /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc understands -c and -o together... yes checking dependency style of /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc... none checking for /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc option to accept ISO C99... none needed checking how to run the C preprocessor... /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-cpp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... 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-pc-linux-gnu checking host system type... i686-buildroot-linux-uclibc checking for a sed that does not truncate output... /usr/bin/sed checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=unknown-warning-option... no checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=unused-command-line-argument... no checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wall... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wpointer-arith... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wmissing-declarations... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wformat=2... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wstrict-prototypes... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wmissing-prototypes... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wnested-externs... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wbad-function-cast... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wold-style-definition... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wdeclaration-after-statement... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wunused... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wuninitialized... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wshadow... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wmissing-noreturn... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wmissing-format-attribute... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wredundant-decls... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Wlogical-op... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=implicit... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=nonnull... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=init-self... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=main... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=missing-braces... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=sequence-point... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=return-type... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=trigraphs... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=array-bounds... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=write-strings... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=address... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=int-to-pointer-cast... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror=pointer-to-int-cast... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -pedantic... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc supports -Werror... yes checking if /data/buildroot/buildroot-test/instance-0/output/host/bin/i686-linux-gcc 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 configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --disable-nls, --disable-static, --enable-shared >>> xapp_xmh 1.0.3 Building PATH="/data/buildroot/buildroot-test/instance-0/output/host/bin:/data/buildroot/buildroot-test/instance-0/output/host/sbin:/data/buildroot/buildroot-test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" /usr/bin/make -j4 -C /data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/ make[1]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' /usr/bin/make all-recursive make[2]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' Making all in man make[3]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/man' GEN xmh.1 make[3]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/man' make[3]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' CC bbox.o CC command.o CC compfuncs.o CC folder.o bbox.c: In function 'BBoxCreate': bbox.c:63:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[n], XtNskipAdjust, True); n++; ^~~~~~~~ bbox.c: In function 'bboxAddButton': bbox.c:120:2: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[i], XtNradioGroup, radio_group); i++; ^~~~~~~~ bbox.c:121:2: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[i], XtNradioData, button->name); i++; ^~~~~~~~ bbox.c: In function 'BBoxLockSize': bbox.c:338:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNmax, maxheight); /* for Paned widget */ ^~~~~~~~ bbox.c: In function 'BBoxMailFlag': bbox.c:362:2: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNleftBitmap, &flag); ^~~~~~~~ bbox.c:365:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNleftBitmap, app_resources.flag_up); ^~~~~~~~ bbox.c:369:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNleftBitmap, app_resources.flag_down); ^~~~~~~~ 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"; ^~~~~~~~~~~~~~~~~~ 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 *); ^~~~~~~~~~~~~ CC init.o CC main.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), ^~~~~~~~~~~~~~ init.c:139:37: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 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), ^~~~~~~~~~~~~~~~~~ init.c:153:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 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 *); ^~~~~~~ CC menu.o 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"; ^~~~~~~~~~~~~~~~~~ CC miscfuncs.o menu.c: In function 'AttachMenuToButton': menu.c:44:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNmenuName, XtNewString(menu_name)); ^~~~~~~~ menu.c: In function 'DoRememberMenuSelection': menu.c:56:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { XtNpopupOnEntry, (XtArgVal) NULL }, ^~~~~~~~~~~~~~~ menu.c: In function 'ToggleMenuItem': menu.c:82:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNleftBitmap, (state ? MenuItemBitmap : None)); ^~~~~~~~ CC mlist.o CC msg.o CC 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:"; ^ pick.c: In function 'AddToggle': pick.c:174:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[n], XtNstate, initial_state); n++; ^~~~~~~~ pick.c:175:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[n], XtNradioGroup, radio_group); n++; ^~~~~~~~ pick.c:176:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 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) ^~~~~~~~~~ pick.c: In function 'CreateWidget': pick.c:465:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNfromHoriz, (XtArgVal)NULL}, ^~~~~~~~~~~~ pick.c:466:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNresizable, (XtArgVal)TRUE}, ^~~~~~~~~~~~ pick.c:468:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNleft, (XtArgVal) XtChainLeft}, ^~~~~~~ pick.c:469:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNbottom, (XtArgVal) XtChainTop}, ^~~~~~~~~ pick.c:470:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNright, (XtArgVal) XtChainLeft}, ^~~~~~~~ pick.c: In function 'AddRow': pick.c:527:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNfromVert, (XtArgVal) NULL}, ^~~~~~~~~~~ pick.c:528:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNresizable, (XtArgVal) TRUE}, ^~~~~~~~~~~~ pick.c:530:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNleft, (XtArgVal) XtChainLeft}, ^~~~~~~ pick.c:531:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNbottom, (XtArgVal) XtChainTop}, ^~~~~~~~~ pick.c:532:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {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)) ^~~~~~~~~ pick.c: In function 'AddGroup': pick.c:569:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNfromVert, (XtArgVal) NULL}, ^~~~~~~~~~~ pick.c:570:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNresizable, (XtArgVal) TRUE}, ^~~~~~~~~~~~ pick.c:572:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNleft, (XtArgVal) XtChainLeft}, ^~~~~~~ pick.c:573:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNbottom, (XtArgVal) XtChainTop}, ^~~~~~~~~ pick.c:574:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {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) ^~~~~~~~ In file included from xmh.h:148:0, from msg.c:33: msg.c: In function 'RedisplayMsg': 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) ^~~~~~~~~~~~ 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); ^~~~~~~~~~~~~~~~ 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)) ^~~~~~~~~ In file included from xmh.h:148:0, from msg.c:33: msg.c: In function 'RemoveMsgConfirmed': 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)) ^~~~~~~~~ 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); ^~~~~~~~~~~ pick.c: In function 'CleanForm': 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); ^~~~~~~~~~~~~~~~ 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) ^~~~~~~~~~~~~~~ pick.c: In function 'MakeAForm': pick.c:692:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {XtNmin, (XtArgVal)50}, ^~~~~~ pick.c:693:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {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 *); ^~~~~~~~~~~~~~ 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"; ^ CC popup.o 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); ^~~~~~~~~~ msg.c: In function 'CreateFileSource': msg.c:938:3: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(arglist[num_args], XtNtype, XawAsciiFile); num_args++; ^~~~~~~~ CC screen.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"; ^ popup.c: In function 'PopupPrompt': popup.c:290:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNresizable, True); ^~~~~~~~ popup.c: In function 'PopupNotice': popup.c:376:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 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.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); ^~~~~~~~~~~~~ screen.c: In function 'MakeCommandMenu': screen.c:176:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (indent) { XtSetArg(args[n], XtNleftMargin, 18); n++; } ^~~~~~~~ screen.c: In function 'MakeTocAndView': screen.c:203:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { XtNselectTypes, (XtArgVal) sarray}, ^~~~~~~~~~~~~~ screen.c:204:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 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 *); ^~~~~~~~~~~~~~~~~~~ CC toc.o CC tocfuncs.o 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[]; ^~~~~~~~~~~~ CC tocutil.o tocutil.c: In function 'TUCheckSequenceMenu': tocutil.c:82:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { XtNleftMargin, (XtArgVal) 18}, ^~~~~~~~~~~~~ CC tsource.o 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"; ^ 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:148:0, from tocutil.c:31: tocutil.c: In function 'TURedisplayToc': 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); ^~~~~~~~~~ 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); ^~~~~~~~~~~~~~~~ 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."); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tocutil.c: In function 'TULoadSeqLists': 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); ^~~~~~~~~~ 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 *); ^~~~~~~ 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': tocutil.c: In function 'TULoadTocFile': tocfuncs.c:616:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "sortm"; ^ 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 *); ^~~~~~~~~~~~~ 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"; ^ tocutil.c:430:2: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNtoc, toc); ^~~~~~~~ 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"; ^ 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 = ""; ^ CC util.o CC viewfuncs.o util.c: In function 'SysErrorMsg': util.c:46:19: 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] 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 */ ^ CCLD xmh make[3]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' make[2]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' make[1]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' >>> xapp_xmh 1.0.3 Installing to target PATH="/data/buildroot/buildroot-test/instance-0/output/host/bin:/data/buildroot/buildroot-test/instance-0/output/host/sbin:/data/buildroot/buildroot-test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" /usr/bin/make -j4 DESTDIR=/data/buildroot/buildroot-test/instance-0/output/target install -C /data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/ make[1]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' Making install in man make[2]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/man' make[3]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/man' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/data/buildroot/buildroot-test/instance-0/output/target/usr/share/man/man1' /usr/bin/install -c -m 644 xmh.1 '/data/buildroot/buildroot-test/instance-0/output/target/usr/share/man/man1' make[3]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/man' make[2]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/man' make[2]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' make[3]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' /usr/bin/mkdir -p '/data/buildroot/buildroot-test/instance-0/output/target/usr/bin' /usr/bin/mkdir -p '/data/buildroot/buildroot-test/instance-0/output/target/data/buildroot/buildroot-test/instance-0/output/host/bin/../i686-buildroot-linux-uclibc/sysroot/usr/share/X11/app-defaults' /usr/bin/install -c -m 644 app-defaults/Xmh '/data/buildroot/buildroot-test/instance-0/output/target/data/buildroot/buildroot-test/instance-0/output/host/bin/../i686-buildroot-linux-uclibc/sysroot/usr/share/X11/app-defaults' /usr/bin/install -c xmh '/data/buildroot/buildroot-test/instance-0/output/target/usr/bin' make[3]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' make[2]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' make[1]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3' xapp_xmh: installs files in /data/buildroot/buildroot-test/instance-0/output/target//data/buildroot/buildroot-test/instance-0/output make: *** [package/pkg-generic.mk:324: /data/buildroot/buildroot-test/instance-0/output/build/xapp_xmh-1.0.3/.stamp_target_installed] Error 1 make: Leaving directory '/data/buildroot/buildroot-test/instance-0/buildroot'