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 *); ^~~~~~~~~~~ CC tocutil.o 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[]; ^~~~~~~~~~~~ tocfuncs.c: In function 'XmhShellCommand': tocfuncs.c:461:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "XmhShellCommand: no command given."); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from xmh.h:149:0, from tocfuncs.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^~~~~~~~~~ tocfuncs.c:469:31: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "XmhShellCommand: command too long."); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from xmh.h:149:0, from tocfuncs.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^~~~~~~~~~ In file included from tocfuncs.c:31:0: tocfuncs.c:496:10: warning: format not a string literal and no format arguments [-Wformat-security] DEBUG( str ); ^ xmh.h:72:29: note: in definition of macro 'DEBUG' {(void)fprintf(stderr, msg); (void)fflush(stderr);} ^~~ tocfuncs.c:498:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "/bin/sh"; ^ tocfuncs.c:499:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[1] = "-c"; /* commands are read from the next argument */ ^ tocfuncs.c:507:27: warning: passing argument 2 of 'PopupError' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] PopupError(scrn->parent, "XmhShellCommand: no messages selected."); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from xmh.h:149:0, from tocfuncs.c:31: externs.h:94:14: note: expected 'String {aka char *}' but argument is of type 'const char *' extern void PopupError (Widget, String); ^~~~~~~~~~ tocfuncs.c: In function 'DoPack': tocfuncs.c:568:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "folder"; ^ tocfuncs.c:570:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-pack"; ^ tocfuncs.c:571:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[3] = "-fast"; ^ tocfuncs.c: In function 'DoSort': tocfuncs.c:616:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "sortm"; ^ tocfuncs.c:618:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-noverbose"; ^ tocfuncs.c: In function 'DoPickMessages': tocfuncs.c:792:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] toseq = "temp"; ^ tocfuncs.c:796:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] toseq = "temp"; ^ tocfuncs.c: In function 'TwiddleSequence': tocfuncs.c:963:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "mark"; ^ tocfuncs.c:965:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-sequence"; ^ tocfuncs.c:969:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-add"; ^ tocfuncs.c:970:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "-nozero"; ^ tocfuncs.c:973:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-delete"; ^ tocfuncs.c:974:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "-nozero"; ^ tocfuncs.c:977:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-delete"; ^ tocfuncs.c:978:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[5] = "all"; ^ CC tsource.o tocutil.c: In function 'TUCheckSequenceMenu': tocutil.c:82:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { XtNleftMargin, (XtArgVal) 18}, ^~~~~~~~~~~~~ tocutil.c: In function 'TUScanFileForToc': tocutil.c:142:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = "scan"; ^ tocutil.c:144:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[2] = "-width"; ^ tocutil.c:147:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[4] = "-noheader"; ^ In file included from xmh.h:148:0, from tocutil.c:31: tocutil.c: In function 'TURedisplayToc': globals.h:124:59: warning: passing argument 2 of 'CreateFileSource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] (NullSource = (Widget) CreateFileSource(scrn->viewlabel, "/dev/null", False))) ^ tocutil.c:239:40: note: in expansion of macro 'PNullSource' XawTextSetSource(scrn->tocwidget, PNullSource, (XawTextPosition) 0); ^~~~~~~~~~~ In file included from xmh.h:149:0, from tocutil.c:31: externs.h:78:17: note: expected 'String {aka char *}' but argument is of type 'const char *' extern Widget CreateFileSource (Widget, String, Boolean); ^~~~~~~~~~~~~~~~ tocutil.c: In function 'TULoadSeqLists': tocutil.c:270:24: warning: passing argument 2 of 'myfopen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = myfopen(str, "r"); ^~~ In file included from xmh.h:149:0, from tocutil.c:31: externs.h:144:15: note: expected 'char *' but argument is of type 'const char *' extern FILE * myfopen (char *, char *); ^~~~~~~ tocutil.c: In function 'TULoadTocFile': tocutil.c:376:40: warning: passing argument 2 of 'FOpenAndCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fid = FOpenAndCheck(toc->scanfile, "r"); ^~~ In file included from xmh.h:149:0, from tocutil.c:31: externs.h:150:16: note: expected 'char *' but argument is of type 'const char *' extern FILEPTR FOpenAndCheck (char *, char *); ^~~~~~~~~~~~~ tocutil.c:430:2: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] XtSetArg(args[0], XtNtoc, toc); ^~~~~~~~ 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 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) ^~~~ CC viewfuncs.o 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 >>> xapp_xmh 1.0.3 Installing to target PATH="/home/buildroot/autobuild/run/instance-0/output/host/bin:/home/buildroot/autobuild/run/instance-0/output/host/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" /usr/bin/make -j4 DESTDIR=/home/buildroot/autobuild/run/instance-0/output/target install -C /home/buildroot/autobuild/run/instance-0/output/build/xapp_xmh-1.0.3/ Making install in man make[4]: Nothing to be done for `install-exec-am'. /bin/mkdir -p '/home/buildroot/autobuild/run/instance-0/output/target/usr/share/man/man1' /usr/bin/install -c -m 644 xmh.1 '/home/buildroot/autobuild/run/instance-0/output/target/usr/share/man/man1' /bin/mkdir -p '/home/buildroot/autobuild/run/instance-0/output/target/usr/bin' /bin/mkdir -p '/home/buildroot/autobuild/run/instance-0/output/target/home/buildroot/autobuild/run/instance-0/output/host/bin/../xtensa-buildroot-linux-uclibc/sysroot/usr/share/X11/app-defaults' /usr/bin/install -c xmh '/home/buildroot/autobuild/run/instance-0/output/target/usr/bin' /usr/bin/install -c -m 644 app-defaults/Xmh '/home/buildroot/autobuild/run/instance-0/output/target/home/buildroot/autobuild/run/instance-0/output/host/bin/../xtensa-buildroot-linux-uclibc/sysroot/usr/share/X11/app-defaults' xapp_xmh: installs files in /home/buildroot/autobuild/run/instance-0/output/target//home/buildroot/autobuild/run/instance-0/output make[1]: *** [/home/buildroot/autobuild/run/instance-0/output/build/xapp_xmh-1.0.3/.stamp_target_installed] Error 1 make: *** [_all] Error 2 make: Leaving directory `/home/buildroot/autobuild/run/instance-0/buildroot'