WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xgraph-11.3.2.9nb2 clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xgraph.c xgraph.c:298:14: warning: passing arguments to 'ParseArgs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseArgs(argc, argv, 0); ^ xgraph.c:307:27: warning: passing arguments to 'xgraph_stream_open' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strm = xgraph_stream_open(NULL); ^ xgraph.c:308:14: warning: passing arguments to 'ReadData' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ReadData(strm) < 0) { ^ xgraph.c:311:21: warning: passing arguments to 'xgraph_stream_close' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xgraph_stream_close(strm); ^ xgraph.c:319:31: warning: passing arguments to 'xgraph_stream_open' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strm = xgraph_stream_open(inFileNames[idx]); ^ xgraph.c:325:15: warning: passing arguments to 'ReadData' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ReadData(strm) < 0) { ^ xgraph.c:328:22: warning: passing arguments to 'xgraph_stream_close' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xgraph_stream_close(strm); ^ xgraph.c:343:14: warning: passing arguments to 'ParseArgs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseArgs(argc, argv, 1); ^ xgraph.c:357:13: warning: passing arguments to 'Traverse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Traverse(flags); ^ xgraph.c:373:24: warning: passing arguments to 'NewWindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] primary = NewWindow(Prog_Name, ^ xgraph.c:410:9: warning: passing arguments to 'init_X' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_X(win_info->dev_info.user_state); ^ xgraph.c:411:13: warning: passing arguments to 'DrawWindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawWindow(win_info); ^ xgraph.c:420:16: warning: passing arguments to 'DelWindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DelWindow(theEvent.xkey.window, win_info); ^ xgraph.c:425:18: warning: passing arguments to 'PrintWindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintWindow(theEvent.xany.window, win_info); ^ xgraph.c:431:31: warning: passing arguments to 'HandleZoom' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Num_Windows += HandleZoom(Prog_Name, ^ xgraph.c:257:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc, argv) ^ xgraph.c:371:28: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] xtb_init(disp, screen, PM_PIXEL("Foreground"), PM_PIXEL("Background"), ^ ~~~~~~~~~~~~~~~~~~~~~~ ./params.h:98:18: note: expanded from macro 'PM_PIXEL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgraph.c:374:4: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] PM_DBL("XLowLimit"), PM_DBL("YLowLimit"), ^ ~~~~~~~~~~~~~~~~~~~ ./params.h:118:18: note: expanded from macro 'PM_DBL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgraph.c:447:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ReversePix(param_name) ^ xgraph.c:494:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void Traverse(flags) ^ xgraph.c:162:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void Traverse(); ^ xgraph.c:559:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Can't close window while\nhardcopy dialog is posted.\n"); ^ xgraph.c:562:15: warning: passing arguments to 'DelWindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DelWindow(the_win, win_info); ^ xgraph.c:544:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_hret del_func(win, bval, info) ^ xgraph.c:585:13: warning: passing arguments to 'PrintWindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintWindow(the_win, win_info); ^ xgraph.c:569:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_hret hcpy_func(win, bval, info) ^ xgraph.c:614:9: warning: passing arguments to 'msg_box' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] msg_box("XGraph", msg_buf); ^ xgraph.c:595:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_hret abt_func(win, bval, info) ^ xgraph.c:739:7: warning: passing arguments to 'set_X' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_X(new_window, &(new_info->dev_info)); ^ xgraph.c:625:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window NewWindow(progname, lowX, lowY, upX, upY, asp) ^ xgraph.c:781:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DelWindow(win, win_info) ^ xgraph.c:169:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DelWindow(); ^ xgraph.c:809:14: warning: passing arguments to 'ho_dialog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ho_dialog(win, Prog_Name, (char *) win_info); ^ xgraph.c:800:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void PrintWindow(win, win_info) ^ xgraph.c:170:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void PrintWindow(); ^ xgraph.c:840:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int HandleZoom(progname, evt, wi, cur) ^ xgraph.c:171:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int HandleZoom(); ^ xgraph.c:868:22: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] gcvals.foreground = PM_PIXEL("ZeroColor") ^ PM_PIXEL("Background"); ^ ~~~~~~~~~~~~~~~~~~~~~~ ./params.h:98:18: note: expanded from macro 'PM_PIXEL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgraph.c:1113:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int argerror(err, val) ^ xgraph.c:1159:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ParseArgs(argc, argv, do_it) ^ xgraph.c:166:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void ParseArgs(); ^ xgraph.c:1299:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int rdSet(fn) ^ xgraph.c:1327:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void rdSetName(name) ^ xgraph.c:1360:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void rdPoint(xval, yval) ^ xgraph.c:1449:19: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern double atof(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:134:9: note: conflicting prototype is here double atof(const char *); ^ xgraph.c:1508:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static LineType parse_line(line, result) ^ xgraph.c:1640:30: warning: passing arguments to 'xgraph_stream_gets' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while (xgraph_stream_gets(buffer, sizeof(buffer), stream)) { ^ xgraph.c:1619:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ReadData(stream) ^ xgraph.c:167:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int ReadData(); ^ xgraph.c:1696:14: warning: passing arguments to 'ReDraw' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(ReDraw(win_info)) ^ xgraph.c:1698:25: warning: passing arguments to 'TransformCompute' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (TransformCompute(win_info)) { ^ xgraph.c:1701:11: warning: passing arguments to 'DrawStart' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawStart(win_info); ^ xgraph.c:1704:11: warning: passing arguments to 'DrawTitle' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawTitle(win_info); ^ xgraph.c:1707:12: warning: passing arguments to 'DrawLegend' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawLegend(win_info); ^ xgraph.c:1710:17: warning: passing arguments to 'DrawGridAndAxis' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawGridAndAxis(win_info); ^ xgraph.c:1713:10: warning: passing arguments to 'DrawData' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawData(win_info); ^ xgraph.c:1716:11: warning: passing arguments to 'DrawFlush' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DrawFlush(win_info); ^ xgraph.c:1685:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawWindow(win_info) ^ xgraph.c:168:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawWindow(); ^ xgraph.c:1733:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1723:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawTitle(wi) ^ xgraph.c:175:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawTitle(); ^ xgraph.c:1797:10: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error(strcpy(err, "Drawing area is too small\n")); ^ xgraph.c:1742:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int TransformCompute(wi) ^ xgraph.c:173:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int TransformCompute(); ^ xgraph.c:1884:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1887:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1891:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1900:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1904:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1907:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1915:22: warning: passing arguments to 'initGrid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ystart = initGrid(wi->UsrOrgY, Yincr, logYFlag); ^ xgraph.c:1919:12: warning: passing arguments to 'WriteValue' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] WriteValue(value, Yindex, expY, logYFlag, PM_STR("LabelFormatY")); ^ xgraph.c:1920:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1927:22: warning: passing arguments to 'initGrid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Xstart = initGrid(wi->UsrOrgX, Xincr, logXFlag); ^ xgraph.c:1931:12: warning: passing arguments to 'WriteValue' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] WriteValue(value, Xindex, expX, logXFlag, PM_STR("LabelFormatX")); ^ xgraph.c:1932:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:1942:22: warning: passing arguments to 'initGrid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ystart = initGrid(wi->UsrOrgY, Yincr, logYFlag); ^ xgraph.c:1957:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:1961:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:1966:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:1970:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:1978:22: warning: passing arguments to 'initGrid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Xstart = initGrid(wi->UsrOrgX, Xincr, logXFlag); ^ xgraph.c:1993:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:1996:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2002:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2005:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2019:21: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:1828:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawGridAndAxis(wi) ^ xgraph.c:177:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawGridAndAxis(); ^ xgraph.c:2079:20: warning: passing arguments to 'RoundUp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gridStep = RoundUp(step); ^ xgraph.c:2029:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double initGrid(low, step, logFlag) ^ xgraph.c:2094:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double RoundUp(val) ^ xgraph.c:2130:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void WriteValue(str, val, expv, logFlag, fmt) ^ xgraph.c:180:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void WriteValue(); ^ xgraph.c:2213:19: warning: passing arguments to 'set_mark_flags' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mark_flags(&markFlag, &pixelMarks, &bigPixel, &colorMark); ^ xgraph.c:2267:23: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_dot(wi->dev_info.user_state, x, y, ^ xgraph.c:2312:24: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2324:26: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2384:27: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2394:26: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2178:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawData(wi) ^ xgraph.c:178:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawData(); ^ xgraph.c:2410:31: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return wi->dev_info.xg_redraw(&wi->dev_info); ^ xgraph.c:2406:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReDraw(wi) ^ xgraph.c:172:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int ReDraw(); ^ xgraph.c:2418:23: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_start(&wi->dev_info); ^ xgraph.c:2414:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawStart(wi) ^ xgraph.c:174:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawStart(); ^ xgraph.c:2425:23: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_flush(wi->dev_info.user_state); ^ xgraph.c:2421:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawFlush(wi) ^ xgraph.c:179:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawFlush(); ^ xgraph.c:2441:19: warning: passing arguments to 'set_mark_flags' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_mark_flags(&markFlag, &pixelMarks, &bigPixel, &colorMark); ^ xgraph.c:2452:28: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_text(wi->dev_info.user_state, ^ xgraph.c:2470:27: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_seg(wi->dev_info.user_state, ^ xgraph.c:2474:24: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wi->dev_info.xg_dot(wi->dev_info.user_state, ^ xgraph.c:2430:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void DrawLegend(wi) ^ xgraph.c:176:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DrawLegend(); ^ xgraph.c:2486:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void set_mark_flags(markFlag, pixelMarks, bigPixel, colorMark) ^ xgraph.c:161:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void set_mark_flags(); ^ xgraph.c:2550:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error(sprintf(err, "Unable to issue command:\n %s\n", buf)); ^ xgraph.c:2554:13: warning: passing arguments to 'tildeExpand' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tildeExpand(tilde, file_or_dev); ^ xgraph.c:2557:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error(sprintf(err, "Unable to open file `%s'\n", tilde)); ^ xgraph.c:2577:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((*init_fun)(out_stream, final_w, final_h, ti_fam, ti_size, ^ xgraph.c:2581:29: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] thisWin.dev_info.xg_end(thisWin.dev_info.user_state); ^ xgraph.c:2584:10: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error(ierr); ^ xgraph.c:2516:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void do_hardcopy(prog, info, init_fun, dev_spec, file_or_dev, maxdim, ^ In file included from xgraph.c:18: In file included from ./xgout.h:8: ./xgraph.h:32:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void do_hardcopy(); /* Carries out hardcopy */ ^ xgraph.c:2594:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *tildeExpand(out, in) ^ xgraph.c:159:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static char *tildeExpand(); ^ xgraph.c:2640:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int XErrHandler(disp_ptr, evt) ^ xgraph.c:252:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int XErrHandler(); /* Handles error messages */ ^ xgraph.c:253:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static XGraphStream *xgraph_stream_open(); ^ xgraph.c:2717:22: note: conflicting prototype is here static XGraphStream *xgraph_stream_open(char *filename) ^ xgraph.c:2759:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *xgraph_stream_gets(buff, n, stream) ^ xgraph.c:254:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static char *xgraph_stream_gets(); ^ xgraph.c:2795:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void xgraph_stream_close(stream) ^ xgraph.c:255:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void xgraph_stream_close(); ^ 137 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xgX.c xgX.c:82:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void set_X(new_win, out_info) ^ In file included from xgX.c:16: In file included from ./xgout.h:8: ./xgraph.h:34:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void set_X(); /* Initializes X device */ ^ xgX.c:186:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void init_X(user_state) ^ xgX.c:201:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static GC textGC(t_win, t_font) ^ xgX.c:226:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static GC segGC(l_win, l_fg, l_style, l_width, l_chars, l_len) ^ xgX.c:258:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static GC dotGC(d_win, d_fg, d_clipmask, d_xorg, d_yorg) ^ xgX.c:292:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void text_X(user_state, x, y, text, just, style) ^ xgX.c:38:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void text_X(); ^ xgX.c:391:46: warning: passing arguments to 'pixel_cache_flush' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(st->pixel_cache_idx) pixel_cache_flush(st); ^ xgX.c:363:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void seg_X(user_state, ns, segs, width, style, lappr, color) ^ xgX.c:39:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void seg_X(); ^ xgX.c:396:25: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] gc = segGC(st->pm, PM_PIXEL("Foreground"), ^ ./params.h:98:18: note: expanded from macro 'PM_PIXEL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgX.c:399:25: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] gc = segGC(st->pm, PM_PIXEL("Foreground"), ^ ./params.h:98:18: note: expanded from macro 'PM_PIXEL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgX.c:407:25: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] gc = segGC(st->pm, PM_PIXEL("ZeroColor"), ^ ./params.h:98:18: note: expanded from macro 'PM_PIXEL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgX.c:410:25: warning: multiple unsequenced modifications to 'param_temp_ptr' [-Wunsequenced] gc = segGC(st->pm, PM_PIXEL("ZeroColor"), ^ ./params.h:98:18: note: expanded from macro 'PM_PIXEL' ((param_temp_ptr = param_get(name, ¶m_temp)) ? \ ^ xgX.c:451:17: warning: passing arguments to 'pixel_cache_put' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pixel_cache_put(st, x, y, color); ^ xgX.c:454:43: warning: passing arguments to 'pixel_cache_flush' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(st->pixel_cache_idx) pixel_cache_flush(st); ^ xgX.c:463:43: warning: passing arguments to 'pixel_cache_flush' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(st->pixel_cache_idx) pixel_cache_flush(st); ^ xgX.c:430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dot_X(user_state, x, y, style, type, color) ^ xgX.c:40:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void dot_X(); ^ xgX.c:475:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int redraw_X(out) ^ xgX.c:36:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int redraw_X(); ^ xgX.c:487:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void start_X(out) ^ xgX.c:37:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void start_X(); ^ xgX.c:523:19: warning: passing arguments to 'pixel_cache_flush' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pixel_cache_flush(st); ^ xgX.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void flush_X(user_state) ^ xgX.c:41:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void flush_X(); ^ xgX.c:529:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void pixel_cache_flush(st) ^ xgX.c:42:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void pixel_cache_flush(); ^ xgX.c:542:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void pixel_cache_put(st, x, y, color) ^ xgX.c:43:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void pixel_cache_put(); ^ 31 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c hard_devices.c clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c dialog.c dialog.c:66:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret df_fun(win, ch, text, val) ^ dialog.c:131:15: warning: passing arguments to 'do_hardcopy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_hardcopy(real_info->prog, real_info->cookie, ^ dialog.c:138:12: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Bad axis font size\n"); ^ dialog.c:143:15: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Bad title font size\n"); ^ dialog.c:148:11: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Bad maximum dimension\n"); ^ dialog.c:153:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Must specify `To File' or `To Device'\n"); ^ dialog.c:158:10: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Must specify an output device\n"); ^ dialog.c:91:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret ok_fun(win, bval, info) ^ dialog.c:166:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret can_fun(win, val, info) ^ dialog.c:183:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret docu_fun(win, val, info) ^ dialog.c:232:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Warning: can't read maximum dimension"); ^ dialog.c:238:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Warning: can't read title font size"); ^ dialog.c:244:14: warning: passing arguments to 'do_error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_error("Warning: can't read axis font size"); ^ dialog.c:200:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret dev_fun(win, old, new, info) ^ dialog.c:283:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret fd_fun(win, old, new, info) ^ dialog.c:336:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void make_dialog(win, spawned, prog, cookie, okbtn, frame) ^ dialog.c:561:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ho_dialog(parent, prog, cookie) ^ In file included from dialog.c:10: In file included from ./xgout.h:8: ./xgraph.h:33:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void ho_dialog(); /* Hardcopy dialog */ ^ dialog.c:631:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret err_func(win, bval, info) ^ dialog.c:659:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void make_msg_box(text, title, frame) ^ dialog.c:33:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void make_msg_box(); ^ dialog.c:792:16: warning: passing arguments to 'del_msg_box' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] del_msg_box(text_frame.win); ^ dialog.c:747:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void msg_box(title, text) ^ In file included from dialog.c:10: In file included from ./xgout.h:8: ./xgraph.h:36:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void msg_box(); ^ dialog.c:795:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void do_error(err_text) ^ dialog.c:19:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void do_error(); ^ dialog.c:803:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int get_line(tptr, lptr) ^ dialog.c:829:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void del_msg_box(msg) ^ dialog.c:34:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void del_msg_box(); ^ 29 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c hpgl.c hpgl.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hpglInit(stream,width,height,title_family, title_size, ^ hpgl.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hpglText(userState,x,y,text,just,style) ^ hpgl.c:19:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void hpglText(); ^ hpgl.c:191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hpglSeg(userState,ns,segs,width,style,lappr,color) ^ hpgl.c:20:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void hpglSeg(); ^ hpgl.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hpglDot(userState,x,y,style,type,color) ^ hpgl.c:21:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void hpglDot(); ^ hpgl.c:306:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hpglEnd(userState) ^ hpgl.c:22:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void hpglEnd(); ^ 9 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c ps.c ps.c:97:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rd(dbl) ^ ps.c:175:12: warning: passing arguments to 'psScale' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] psScale(psFile, width, height, flags); ^ ps.c:176:12: warning: passing arguments to 'psFuncs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] psFuncs(psFile, ui); ^ ps.c:177:12: warning: passing arguments to 'psFonts' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] psFonts(psFile); ^ ps.c:178:12: warning: passing arguments to 'psMarks' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] psMarks(psFile, ui); ^ ps.c:109:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int psInit(psFile, width, height, tf, ts, af, as, flags, outInfo, errmsg) ^ ps.c:187:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psHeader(psFile, docu_flag) ^ ps.c:208:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psScale(psFile, width, height, flags) ^ ps.c:73:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:302:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psFonts(psFile) ^ ps.c:73:24: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:379:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psMarks(psFile, ui) ^ ps.c:73:35: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:426:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psFuncs(psFile, ui) ^ ps.c:73:46: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:442:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psText(state, x, y, text, just, style) ^ ps.c:73:57: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:473:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *int_to_str(value, len_ret) ^ ps.c:534:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psSeg(state, ns, seglist, width, style, lappr, color) ^ ps.c:73:67: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:600:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psDot(state, x, y, style, type, color) ^ ps.c:73:76: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ ps.c:639:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void psEnd(userState) ^ ps.c:73:85: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void psScale(), psFonts(), psMarks(), psFuncs(), psText(), psSeg(), psDot(), psEnd(); ^ 24 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c idraw.c idraw.c:80:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int idrawInit(strm, width, height, title_family, title_size, ^ idraw.c:209:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void idraw_just(x, y, just, size, len) ^ idraw.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void idrawText(user_state, x, y, text, just, style) ^ idraw.c:75:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void idrawText( ); ^ idraw.c:314:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void idrawSeg(user_state, ns, seglist, width, style, lappr, color) ^ idraw.c:77:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void idrawSeg( ); ^ idraw.c:347:31: warning: implicit conversion from 'int' to 'short' changes value from 65535 to -1 [-Wconstant-conversion] to_style = style == L_AXIS ? 65535 ~ ^~~~~ idraw.c:348:23: warning: implicit conversion from 'int' to 'short' changes value from 65535 to -1 [-Wconstant-conversion] : style == L_ZERO ? 65535 ^~~~~ idraw.c:396:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void idrawDot(user_state, x, y, style, type, color) ^ idraw.c:76:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void idrawDot( ); ^ idraw.c:414:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void idrawEnd(user_state) ^ idraw.c:78:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void idrawEnd( ); ^ 12 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xtb.c xtb.c:53:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_init(disp, scrn, foreground, background, font) ^ xtb.c:86:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static Pixmap make_stipple(disp, able, bits, width, height) ^ xtb.c:122:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static Pixmap gray_map(win) ^ xtb.c:136:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static GC set_gc(win, fg, bg, font, gray_p) ^ xtb.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_register(win, func, info) ^ xtb.c:190:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_data xtb_lookup(win) ^ xtb.c:205:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_hret xtb_dispatch(evt) ^ xtb.c:220:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_unregister(win, info) ^ xtb.c:256:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void bt_draw(win, ri) ^ xtb.c:287:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void bt_line(win, ri, pix) ^ xtb.c:301:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret bt_h(evt, info) ^ xtb.c:335:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_bt_new(win, text, func, val, frame) ^ xtb.c:381:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_bt_get(win, stuff, na) ^ xtb.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_bt_set(win, val, stuff, na) ^ xtb.c:423:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_bt_del(win, info) ^ xtb.c:457:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret br_h(win, val, info) ^ xtb.c:492:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_br_new(win, cnt, lbls, init, func, val, frame) ^ xtb.c:547:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_br_get(win) ^ xtb.c:560:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_br_del(win) ^ xtb.c:591:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void to_draw(win, ri) ^ xtb.c:604:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret to_h(evt, info) ^ xtb.c:623:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_to_new(win, text, ft, frame) ^ xtb.c:651:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_to_del(win) ^ xtb.c:689:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int text_width(font, str, len) ^ xtb.c:704:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ti_cursor_on(win, ri) ^ xtb.c:718:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ti_cursor_off(win, ri) ^ xtb.c:732:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ti_draw(win, ri, c_flag) ^ xtb.c:752:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ti_line(win, ri, pix) ^ xtb.c:767:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void focus_evt(evt) ^ xtb.c:815:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static xtb_hret ti_h(evt, info) ^ xtb.c:878:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_ti_new(win, text, maxchar, func, val, frame) ^ xtb.c:930:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_ti_get(win, text, val) ^ xtb.c:947:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_ti_set(win, text, val) ^ xtb.c:976:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_ti_ins(win, ch) ^ xtb.c:1005:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xtb_ti_dch(win) ^ xtb.c:1032:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_ti_del(win, info) ^ xtb.c:1053:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_bk_new(win, width, height, frame) ^ xtb.c:1076:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_bk_del(win) ^ xtb.c:1094:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_fmt *xtb_w(w) ^ xtb.c:1184:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void xtb_fmt_setpos(def, x, y) ^ xtb.c:1209:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void xtb_fmt_addpos(def, x, y) ^ xtb.c:1233:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void xtb_fmt_hort(nd, defs, widths, heights, just, pad, inter, rw, rh) ^ xtb.c:1280:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void xtb_fmt_vert(nd, defs, widths, heights, just, pad, inter, rw, rh) ^ xtb.c:1347:52: warning: passing 'unsigned int[50]' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] xtb_fmt_hort(def->align.ni, def->align.items, widths, heights, ^~~~~~ xtb.c:1347:60: warning: passing 'unsigned int[50]' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] xtb_fmt_hort(def->align.ni, def->align.items, widths, heights, ^~~~~~~ xtb.c:1349:28: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] def->align.interspace, w, h); ^ xtb.c:1349:31: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] def->align.interspace, w, h); ^ xtb.c:1352:52: warning: passing 'unsigned int[50]' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] xtb_fmt_vert(def->align.ni, def->align.items, widths, heights, ^~~~~~ xtb.c:1352:60: warning: passing 'unsigned int[50]' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] xtb_fmt_vert(def->align.ni, def->align.items, widths, heights, ^~~~~~~ xtb.c:1354:28: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] def->align.interspace, w, h); ^ xtb.c:1354:31: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] def->align.interspace, w, h); ^ xtb.c:1326:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void xtb_fmt_top(def, w, h) ^ xtb.c:1396:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtb_fmt *xtb_fmt_do(def, w, h) ^ xtb.c:1415:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_fmt_free(def) ^ xtb.c:1431:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xtb_mv_frames(nf, frames) ^ 55 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c st.c st.c:46:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ ./st.h:88:12: note: conflicting prototype is here extern int st_numhash ^ st.c:46:19: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ ./st.h:91:12: note: conflicting prototype is here extern int st_ptrhash ^ st.c:46:33: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ ./st.h:94:12: note: conflicting prototype is here extern int st_numcmp ^ st.c:46:46: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ ./st.h:97:12: note: conflicting prototype is here extern int st_ptrcmp ^ st.c:51:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_table *st_init_table_with_params(compare, hash, size, density, grow_factor, ^ st.c:65:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_NO_MEM, st_no_mem); ^ st.c:82:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_NO_MEM, st_no_mem); ^ st.c:88:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_table *st_init_table(compare, hash) ^ st.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_free_table(table) ^ st.c:136:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_lookup(table, key, value) ^ st.c:145:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:147:5: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FIND_ENTRY(table, hash_val, key, ptr, last); ^ st.c:127:12: note: expanded from macro 'FIND_ENTRY' while (PTR_NOT_EQUAL((table), (ptr), (key))) {\ ^ st.c:122:33: note: expanded from macro 'PTR_NOT_EQUAL' (ptr != nil(st_table_entry) && !EQUAL(table->compare, user_key, (ptr)->key)) ^ st.c:30:43: note: expanded from macro 'EQUAL' (ST_NUMCMP((x),(y)) == 0) : ((*func)((x), (y)) == 0)) ^ st.c:178:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_insert(table, key, value) ^ st.c:188:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:190:5: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FIND_ENTRY(table, hash_val, key, ptr, last); ^ st.c:127:12: note: expanded from macro 'FIND_ENTRY' while (PTR_NOT_EQUAL((table), (ptr), (key))) {\ ^ st.c:122:33: note: expanded from macro 'PTR_NOT_EQUAL' (ptr != nil(st_table_entry) && !EQUAL(table->compare, user_key, (ptr)->key)) ^ st.c:30:43: note: expanded from macro 'EQUAL' (ST_NUMCMP((x),(y)) == 0) : ((*func)((x), (y)) == 0)) ^ st.c:193:2: warning: passing arguments to 'rehash' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ADD_DIRECT(table,key,value,hash_val,new); ^ st.c:160:15: note: expanded from macro 'ADD_DIRECT' (void) rehash(table);\ ^ st.c:193:2: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st.c:161:13: note: expanded from macro 'ADD_DIRECT' hash_val = do_hash(key,table);\ ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:193:2: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st.c:173:10: note: expanded from macro 'ADD_DIRECT' errRaise(st_pkg_name, ST_NO_MEM, st_no_mem);\ ^ st.c:201:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void st_add_direct(table, key, value) ^ st.c:210:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:211:5: warning: passing arguments to 'rehash' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ADD_DIRECT(table, key, value, hash_val, new); ^ st.c:160:15: note: expanded from macro 'ADD_DIRECT' (void) rehash(table);\ ^ st.c:211:5: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st.c:161:13: note: expanded from macro 'ADD_DIRECT' hash_val = do_hash(key,table);\ ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:211:5: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st.c:173:10: note: expanded from macro 'ADD_DIRECT' errRaise(st_pkg_name, ST_NO_MEM, st_no_mem);\ ^ st.c:214:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_find_or_add(table, key, slot) ^ st.c:223:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:225:5: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FIND_ENTRY(table, hash_val, key, ptr, last); ^ st.c:127:12: note: expanded from macro 'FIND_ENTRY' while (PTR_NOT_EQUAL((table), (ptr), (key))) {\ ^ st.c:122:33: note: expanded from macro 'PTR_NOT_EQUAL' (ptr != nil(st_table_entry) && !EQUAL(table->compare, user_key, (ptr)->key)) ^ st.c:30:43: note: expanded from macro 'EQUAL' (ST_NUMCMP((x),(y)) == 0) : ((*func)((x), (y)) == 0)) ^ st.c:228:2: warning: passing arguments to 'rehash' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ADD_DIRECT(table, key, (char *)0, hash_val, new); ^ st.c:160:15: note: expanded from macro 'ADD_DIRECT' (void) rehash(table);\ ^ st.c:228:2: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st.c:161:13: note: expanded from macro 'ADD_DIRECT' hash_val = do_hash(key,table);\ ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:228:2: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st.c:173:10: note: expanded from macro 'ADD_DIRECT' errRaise(st_pkg_name, ST_NO_MEM, st_no_mem);\ ^ st.c:237:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_find(table, key, slot) ^ st.c:246:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:248:5: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FIND_ENTRY(table, hash_val, key, ptr, last); ^ st.c:127:12: note: expanded from macro 'FIND_ENTRY' while (PTR_NOT_EQUAL((table), (ptr), (key))) {\ ^ st.c:122:33: note: expanded from macro 'PTR_NOT_EQUAL' (ptr != nil(st_table_entry) && !EQUAL(table->compare, user_key, (ptr)->key)) ^ st.c:30:43: note: expanded from macro 'EQUAL' (ST_NUMCMP((x),(y)) == 0) : ((*func)((x), (y)) == 0)) ^ st.c:288:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(ptr->key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:258:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void rehash(table) ^ st.c:47:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void rehash(); ^ st.c:298:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_table *st_copy(old_table) ^ st.c:307:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_NO_MEM, st_no_mem); ^ st.c:317:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_NO_MEM, st_no_mem); ^ st.c:329:11: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_NO_MEM, st_no_mem); ^ st.c:341:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_delete(table, keyp, value) ^ st.c:350:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash_val = do_hash(key, table); ^ st.c:36:20: note: expanded from macro 'do_hash' (*table->hash)((key), (table)->num_bins)) ^ st.c:352:5: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FIND_ENTRY(table, hash_val, key, ptr ,last); ^ st.c:127:12: note: expanded from macro 'FIND_ENTRY' while (PTR_NOT_EQUAL((table), (ptr), (key))) {\ ^ st.c:122:33: note: expanded from macro 'PTR_NOT_EQUAL' (ptr != nil(st_table_entry) && !EQUAL(table->compare, user_key, (ptr)->key)) ^ st.c:30:43: note: expanded from macro 'EQUAL' (ST_NUMCMP((x),(y)) == 0) : ((*func)((x), (y)) == 0)) ^ st.c:366:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_foreach(table, func, arg) ^ st.c:378:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] retval = (*func)(ptr->key, ptr->record, arg); ^ st.c:391:11: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_BAD_RET, st_bad_ret); ^ st.c:399:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_strhash(string, modulus) ^ st.c:413:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_numhash(x, size) ^ st.c:46:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ st.c:420:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_ptrhash(x, size) ^ st.c:46:19: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ st.c:427:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_numcmp(x, y) ^ st.c:46:33: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ st.c:434:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int st_ptrcmp(x, y) ^ st.c:46:46: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int st_numhash(), st_ptrhash(), st_numcmp(), st_ptrcmp(); ^ st.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_init_gen(table) ^ st.c:450:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_NO_MEM, st_no_mem); ^ st.c:461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_gen(gen, key_p, value_p) ^ st.c:470:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_BAD_GEN, st_bad_gen); ^ st.c:495:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] st_free_gen(gen) ^ st.c:501:10: warning: passing arguments to 'errRaise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errRaise(st_pkg_name, ST_BAD_GEN, st_bad_gen); ^ st.c:507:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void errRaise(pkg, num, msg) ^ st.c:48:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void errRaise(); ^ 62 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c params.c params.c:55:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void param_init(disp, cmap) ^ params.c:72:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void param_set(name, type, val) ^ params.c:91:37: warning: passing arguments to 'free_resource' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (entry->real_form) free_resource(entry->real_form); ^ params.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void param_reset(name, val) ^ params.c:130:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] params *param_get(name, val) ^ params.c:147:38: warning: passing arguments to 'resolve_entry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] entry->real_form = resolve_entry(name, entry->type, entry->text_form); ^ params.c:157:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void free_resource(val) ^ params.c:36:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void free_resource(); ^ params.c:215:15: warning: passing arguments to 'do_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!do_color(form, &result->pixv.value)) { ^ params.c:218:21: warning: passing arguments to 'do_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) do_color(DEF_PIXEL, &result->pixv.value); ^ params.c:222:14: warning: passing arguments to 'do_font' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!do_font(form, &result->fontv.value)) { ^ params.c:225:20: warning: passing arguments to 'do_font' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) do_font(DEF_FONT, &result->fontv.value); ^ params.c:229:15: warning: passing arguments to 'do_style' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!do_style(form, &result->stylev)) { ^ params.c:232:21: warning: passing arguments to 'do_style' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) do_style(DEF_STYLE, &result->stylev); ^ params.c:236:14: warning: passing arguments to 'do_bool' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!do_bool(form, &result->boolv.value)) { ^ params.c:239:20: warning: passing arguments to 'do_bool' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) do_bool(DEF_BOOL, &result->boolv.value); ^ params.c:188:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static params *resolve_entry(name, type, form) ^ params.c:37:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static params *resolve_entry(); ^ params.c:256:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int do_color(name, color) ^ params.c:27:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int do_color(); ^ params.c:325:12: warning: cast to smaller integer type 'int' from 'XFontStruct *' [-Wpointer-to-int-cast] return (int) (*font_info = XLoadQueryFont(param_disp, name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ params.c:284:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int do_font(name, font_info) ^ params.c:28:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int do_font(); ^ params.c:329:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int do_style(list, val) ^ params.c:29:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int do_style(); ^ params.c:377:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int do_bool(name, val) ^ params.c:30:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int do_bool(); ^ params.c:407:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static enum st_retval dump_it(key, value, arg) ^ params.c:450:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int stricmp(a, b) ^ params.c:472:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int strihash(string, modulus) ^ params.c:38:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int strihash(); ^ 31 warnings generated. rm -f xgraph._man if test -z "" ; then cd `dirname xgraph` && ln -s `basename xgraph.man` `basename xgraph._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'` X.Org" < xgraph.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\/' >xgraph._man; fi rm -f xgraph clang -o xgraph -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xgraph.o xgX.o hard_devices.o dialog.o hpgl.o ps.o idraw.o xtb.o st.o params.o -lXext -lX11 -lm