=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/time/sunclock", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for sunclock-3.57nb1 --- all --- --- sunclock.o --- --- astro.o --- --- widgets.o --- --- all --- cd editkit ; xmkmf ; make emx DESTDIR=/home/pbulk/work/time/sunclock/work/.destdir BINDIR=/opt/pkg/bin MANDIR=/home/pbulk/work/time/sunclock/work/.destdir/opt/pkg/share/sunclock/editkit SHAREDIR=/home/pbulk/work/time/sunclock/work/.destdir/opt/pkg/share/sunclock/editkit DOCDIR=/opt/pkg/share/sunclock/doc --- sunclock.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -DZLIB -DSHAREDIR=\"/opt/pkg/share/sunclock\" -DEMXBINDIR=\"/opt/pkg/bin\" -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DUSE_PUTENV -I/opt/pkg/include -DUSE_PUTENV -I/opt/pkg/include -c sunclock.c --- widgets.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -DZLIB -DSHAREDIR=\"/opt/pkg/share/sunclock\" -DEMXBINDIR=\"/opt/pkg/bin\" -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DUSE_PUTENV -I/opt/pkg/include -DUSE_PUTENV -I/opt/pkg/include -c widgets.c --- astro.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -DZLIB -DSHAREDIR=\"/opt/pkg/share/sunclock\" -DEMXBINDIR=\"/opt/pkg/bin\" -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DUSE_PUTENV -I/opt/pkg/include -DUSE_PUTENV -I/opt/pkg/include -c astro.c --- all --- mv -f Makefile Makefile.bak imake -DUseInstalled -I/opt/pkg/lib/X11/config warning: could not parse version number in output of: cc -V 2>&1 warning: could not parse version number in output of: /opt/SUNWspro/bin/cc -V 2>&1 warning: could not parse version number in output of: CC -V 2>&1 warning: could not parse version number in output of: /opt/SUNWspro/bin/CC -V 2>&1 imake: executing: /opt/pkg/bin/tradcpp -I. -Uunix -D__amd64__ -D__amd64__ -traditional -DSVR4 -D__amd64 -debuglog .imake.cpplog -DUseInstalled -I/opt/pkg/lib/X11/config -DHasGcc2=YES -DHasGcc2ForCplusplus=YES .imake.start.c --- astro.o --- astro.c: In function 'jdate': astro.c:12:1: warning: old-style function definition [-Wold-style-definition] 12 | jdate(t) | ^~~~~ astro.c: In function 'jtime': astro.c:36:1: warning: old-style function definition [-Wold-style-definition] 36 | jtime(t) | ^~~~~ astro.c: In function 'gmst': astro.c:48:1: warning: old-style function definition [-Wold-style-definition] 48 | gmst(jd) | ^~~~ astro.c: In function 'kepler': astro.c:73:1: warning: old-style function definition [-Wold-style-definition] 73 | kepler(m, ecc) | ^~~~~~ astro.c: In function 'sunpos': astro.c:102:1: warning: old-style function definition [-Wold-style-definition] 102 | sunpos(jd, apparent, ra, dec, rv, slong) | ^~~~~~ --- all --- .imake.start.c:8:9: Warning: non-identical redefinition of HasGcc2 :12:1: Previous definition was here --- astro.o --- astro.c: In function 'jyear': astro.c:203:6: warning: old-style function definition [-Wold-style-definition] 203 | void jyear(td, yy, mm, dd) | ^~~~~ astro.c: In function 'jhms': astro.c:235:6: warning: old-style function definition [-Wold-style-definition] 235 | void jhms(j, h, m, s) | ^~~~ astro.c: In function 'meanphase': astro.c:260:8: warning: old-style function definition [-Wold-style-definition] 260 | double meanphase(sdate, phase, usek) | ^~~~~~~~~ astro.c: In function 'truephase': astro.c:290:8: warning: old-style function definition [-Wold-style-definition] 290 | double truephase(k, phase) | ^~~~~~~~~ astro.c: In function 'phasehunt': astro.c:373:6: warning: old-style function definition [-Wold-style-definition] 373 | void phasehunt(sdate, phases) | ^~~~~~~~~ astro.c: In function 'phase': astro.c:410:1: warning: old-style function definition [-Wold-style-definition] 410 | phase(gtime, lat, lon, pphase, mage, dist, angdia, sudist, suangdia) | ^~~~~ --- widgets.o --- widgets.c: In function 'getState': widgets.c:227:1: warning: old-style function definition [-Wold-style-definition] 227 | getState(w) | ^~~~~~~~ widgets.c: In function 'getPlacement': widgets.c:236:1: warning: old-style function definition [-Wold-style-definition] 236 | getPlacement(win, x, y, w, h) | ^~~~~~~~~~~~ widgets.c: At top level: widgets.c:274:19: error: expected ')' before 'bool' 274 | checkGeom(Context, bool) | ^~~~~ | ) widgets.c:276:5: error: 'bool' cannot be used here 276 | int bool; | ^~~~ widgets.c:276:5: note: 'bool' is a keyword with '-std=c23' onwards widgets.c:276:1: warning: useless type name in empty declaration 276 | int bool; | ^~~ widgets.c:277:1: error: expected identifier or '(' before '{' token 277 | { | ^ widgets.c: In function 'adjustGeom': widgets.c:292:1: warning: old-style function definition [-Wold-style-definition] 292 | adjustGeom(Context, which) | ^~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'StringReAlloc': sunclock.c:415:1: warning: old-style function definition [-Wold-style-definition] 415 | StringReAlloc(t, s) | ^~~~~~~~~~~~~ sunclock.c:421:25: error: too many arguments to function 'salloc'; expected 0, have 1 421 | *t = (char *) salloc((strlen(s)+1)*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:332:16: error: implicit declaration of function 'checkGeom' [-Wimplicit-function-declaration] 332 | checkGeom(Context, 1); | ^~~~~~~~~ widgets.c: In function 'setSizeHints': widgets.c:343:1: warning: old-style function definition [-Wold-style-definition] 343 | setSizeHints(Context, num) | ^~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'str2numval': sunclock.c:695:1: warning: old-style function definition [-Wold-style-definition] 695 | str2numval(s, val, max) | ^~~~~~~~~~ sunclock.c: In function 'needMore': sunclock.c:743:1: warning: old-style function definition [-Wold-style-definition] 743 | needMore(argc, argv) | ^~~~~~~~ --- widgets.o --- widgets.c: In function 'setClassHints': widgets.c:420:1: warning: old-style function definition [-Wold-style-definition] 420 | setClassHints(win, num) | ^~~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'getGeom': sunclock.c:770:1: warning: old-style function definition [-Wold-style-definition] 770 | getGeom(s, g) | ^~~~~~~ --- widgets.o --- widgets.c:428:21: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 428 | if (!Title) StringReAlloc(&Title, ProgName); | ^~~~~~~~~~~~~ ~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:431:12: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 431 | StringReAlloc(&ClassName, ProgName); | ^~~~~~~~~~~~~ ~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:436:12: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 436 | StringReAlloc(&ClockClassName, ClassName); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:439:12: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 439 | StringReAlloc(&MapClassName, ClassName); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:442:12: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 442 | StringReAlloc(&AuxilClassName, ClassName); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'parseFormats': sunclock.c:808:32: error: too many arguments to function 'salloc'; expected 0, have 1 808 | DateFormat = (char **) salloc(num_formats*sizeof(char *)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:457:12: error: too many arguments to function 'salloc'; expected 0, have 1 457 | salloc((strlen(Title)+strlen(VERSION)+10)*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ widgets.c:11:17: note: declared here 11 | extern char * salloc(); | ^~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:463:12: error: too many arguments to function 'salloc'; expected 0, have 1 463 | salloc((strlen(Title)+20)*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ widgets.c:11:17: note: declared here 11 | extern char * salloc(); | ^~~~~~ --- sunclock.o --- sunclock.c: In function 'setWindowAspect': --- widgets.o --- widgets.c: In function 'setProtocols': --- sunclock.o --- sunclock.c:821:5: warning: old-style function definition [-Wold-style-definition] 821 | int setWindowAspect(Context) | ^~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:470:1: warning: old-style function definition [-Wold-style-definition] 470 | setProtocols(Context, num) | ^~~~~~~~~~~~ widgets.c: In function 'newWindow': widgets.c:532:1: warning: old-style function definition [-Wold-style-definition] 532 | newWindow(Context, Geom, num) | ^~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'checkRCfile': sunclock.c:869:1: warning: old-style function definition [-Wold-style-definition] 869 | checkRCfile(argc, argv) | ^~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'getWinParams': widgets.c:559:6: warning: old-style function definition [-Wold-style-definition] 559 | void getWinParams(win, Context, keys, nkeys, y, width) | ^~~~~~~~~~~~ widgets.c: In function 'getButton': widgets.c:606:1: warning: old-style function definition [-Wold-style-definition] 606 | getButton(win, x, y) | ^~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'dms2decim': sunclock.c:890:1: warning: old-style function definition [-Wold-style-definition] 890 | dms2decim(string) | ^~~~~~~~~ sunclock.c: In function 'scanPosition': sunclock.c:903:1: warning: old-style function definition [-Wold-style-definition] 903 | scanPosition(string, city) | ^~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'drawBox': widgets.c:633:1: warning: old-style function definition [-Wold-style-definition] 633 | drawBox(win, gc, pix, x1, y1, x2, y2, clicked) | ^~~~~~~ --- sunclock.o --- sunclock.c: In function 'searchCityLocation': sunclock.c:926:1: warning: old-style function definition [-Wold-style-definition] 926 | searchCityLocation(params) | ^~~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'drawButton': widgets.c:661:1: warning: old-style function definition [-Wold-style-definition] 661 | drawButton(win, n, clicked) | ^~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'freecity': sunclock.c:968:1: warning: old-style function definition [-Wold-style-definition] 968 | freecity(c) | ^~~~~~~~ sunclock.c: In function 'removeCity': sunclock.c:977:1: warning: old-style function definition [-Wold-style-definition] 977 | removeCity(c) | ^~~~~~~~~~ sunclock.c: In function 'addCity': sunclock.c:1003:1: warning: old-style function definition [-Wold-style-definition] 1003 | addCity(longparams) | ^~~~~~~ sunclock.c:1060:15: error: too many arguments to function 'showUrbanHint'; expected 0, have 1 1060 | showUrbanHint(params); | ^~~~~~~~~~~~~ ~~~~~~ --- widgets.o --- widgets.c: In function 'getNumCmd': widgets.c:743:1: warning: old-style function definition [-Wold-style-definition] 743 | getNumCmd(key) | ^~~~~~~~~ --- sunclock.o --- sunclock.c:193:13: note: declared here 193 | extern void showUrbanHint(); | ^~~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'BasicSettings': widgets.c:753:1: warning: old-style function definition [-Wold-style-definition] 753 | BasicSettings(Context) | ^~~~~~~~~~~~~ widgets.c: In function 'helpHint': widgets.c:762:1: warning: old-style function definition [-Wold-style-definition] 762 | helpHint(Context, key, hint) | ^~~~~~~~ --- sunclock.o --- sunclock.c: In function 'parseColor': sunclock.c:1123:1: warning: old-style function definition [-Wold-style-definition] 1123 | parseColor(s) | ^~~~~~~~~~ sunclock.c: In function 'parseFont': sunclock.c:1157:1: warning: old-style function definition [-Wold-style-definition] 1157 | parseFont(s) | ^~~~~~~~~ sunclock.c: In function 'parseArgs': sunclock.c:1206:1: warning: old-style function definition [-Wold-style-definition] 1206 | parseArgs(argc, argv) | ^~~~~~~~~ --- widgets.o --- widgets.c: In function 'showMenuHint': widgets.c:838:1: warning: old-style function definition [-Wold-style-definition] 838 | showMenuHint(but_pos) | ^~~~~~~~~~~~ widgets.c: In function 'setupMenu': widgets.c:867:1: warning: old-style function definition [-Wold-style-definition] 867 | setupMenu(mode) | ^~~~~~~~~ widgets.c: In function 'PopMenu': widgets.c:904:1: warning: old-style function definition [-Wold-style-definition] 904 | PopMenu(Context) | ^~~~~~~ widgets.c: In function 'processMenuAction': widgets.c:952:1: warning: old-style function definition [-Wold-style-definition] 952 | processMenuAction(Context, x, y, button, evtype) | ^~~~~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:1361:32: error: too many arguments to function 'readRC'; expected 0, have 1 1361 | if (readRC(*++argv)) runlevel = FAILEDOPTION; | ^~~~~~ ~~~~~~~ sunclock.c:1120:1: note: declared here 1120 | readRC(); | ^~~~~~ --- widgets.o --- widgets.c:989:12: error: too many arguments to function 'processKey'; expected 0, have 2 989 | processKey(Menu, (KeySym)key); | ^~~~~~~~~~ ~~~~ widgets.c:19:25: note: declared here 19 | extern void processKey(); | ^~~~~~~~~~ widgets.c: In function 'setupFilesel': widgets.c:1001:1: warning: old-style function definition [-Wold-style-definition] 1001 | setupFilesel(mode) | ^~~~~~~~~~~~ widgets.c:1063:23: error: too many arguments to function 'get_dir_list'; expected 0, have 2 1063 | dirtable = get_dir_list(image_dir, &num_table_entries); | ^~~~~~~~~~~~ ~~~~~~~~~ widgets.c:14:27: note: declared here 14 | extern char **get_dir_list(); | ^~~~~~~~~~~~ widgets.c:1065:63: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types] 1065 | qsort(dirtable, num_table_entries, sizeof(char *), dup_strcmp); | ^~~~~~~~~~ | | | int (*)(void) --- sunclock.o --- sunclock.c:1484:25: error: too many arguments to function 'checkZoomSettings'; expected 0, have 1 1484 | checkZoomSettings(&gzoom); | ^~~~~~~~~~~~~~~~~ ~~~~~~ --- widgets.o --- In file included from /usr/include/stdlib.h:41, from sunclock.h:15, from widgets.c:8: /usr/include/iso/stdlib_iso.h:147:43: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(void)' 147 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ widgets.c:15:25: note: 'dup_strcmp' declared here 15 | extern int dup_strcmp(); | ^~~~~~~~~~ --- sunclock.o --- sunclock.c:177:13: note: declared here 177 | extern void checkZoomSettings(); | ^~~~~~~~~~~~~~~~~ sunclock.c:1489:25: error: too many arguments to function 'checkZoomSettings'; expected 0, have 1 1489 | checkZoomSettings(&gzoom); | ^~~~~~~~~~~~~~~~~ ~~~~~~ sunclock.c:177:13: note: declared here 177 | extern void checkZoomSettings(); | ^~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'PopFilesel': widgets.c:1141:1: warning: old-style function definition [-Wold-style-definition] 1141 | PopFilesel(Context) | ^~~~~~~~~~ widgets.c:1156:25: error: too many arguments to function 'free_dirlist'; expected 0, have 1 1156 | if (dirtable) free_dirlist(dirtable); | ^~~~~~~~~~~~ ~~~~~~~~ widgets.c:16:25: note: declared here 16 | extern void free_dirlist(); | ^~~~~~~~~~~~ widgets.c: In function 'processFileselAction': widgets.c:1193:1: warning: old-style function definition [-Wold-style-definition] 1193 | processFileselAction(Context, x, y, evtype) | ^~~~~~~~~~~~~~~~~~~~ widgets.c:1242:14: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 1242 | StringReAlloc(&image_dir, share_maps_dir); | ^~~~~~~~~~~~~ ~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:1244:14: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 1244 | StringReAlloc(&image_dir, "/"); | ^~~~~~~~~~~~~ ~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:1247:14: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 1247 | StringReAlloc(&image_dir, newdir); | ^~~~~~~~~~~~~ ~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:1258:15: error: too many arguments to function 'processKey'; expected 0, have 2 1258 | processKey(Context->win, XK_w); | ^~~~~~~~~~ ~~~~~~~~~~~~ widgets.c:19:25: note: declared here 19 | extern void processKey(); | ^~~~~~~~~~ widgets.c:1262:15: error: too many arguments to function 'processKey'; expected 0, have 2 1262 | processKey(Context->win, XK_exclam); | ^~~~~~~~~~ ~~~~~~~~~~~~ widgets.c:19:25: note: declared here 19 | extern void processKey(); | ^~~~~~~~~~ widgets.c:1315:25: error: too many arguments to function 'salloc'; expected 0, have 1 1315 | f = (char *) salloc(strlen(image_dir)+y+2); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~ widgets.c:11:17: note: declared here 11 | extern char * salloc(); | ^~~~~~ widgets.c:1333:29: error: too many arguments to function 'free_dirlist'; expected 0, have 1 1333 | if (dirtable) free_dirlist(dirtable); | ^~~~~~~~~~~~ ~~~~~~~~ widgets.c:16:25: note: declared here 16 | extern void free_dirlist(); | ^~~~~~~~~~~~ widgets.c:1337:15: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 1337 | StringReAlloc(&image_dir, f); | ^~~~~~~~~~~~~ ~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'parseCmdLine': sunclock.c:1707:1: warning: old-style function definition [-Wold-style-definition] 1707 | parseCmdLine(buf) | ^~~~~~~~~~~~ --- widgets.o --- widgets.c:1345:17: error: too many arguments to function 'salloc'; expected 0, have 1 1345 | salloc((strlen(image_dir)+strlen(s)+2)*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ widgets.c:11:17: note: declared here 11 | extern char * salloc(); | ^~~~~~ --- sunclock.o --- sunclock.c:1716:20: error: too many arguments to function 'salloc'; expected 0, have 1 1716 | dup = (char *) salloc((l+2)*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:1349:21: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 1349 | StringReAlloc(&Context->map_img_file, f); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:1351:21: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 1351 | StringReAlloc(&Context->clock_img_file, f); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:1730:22: error: too many arguments to function 'salloc'; expected 0, have 1 1730 | argv = (char **) salloc((j+2)*sizeof(char *)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:1354:18: error: too many arguments to function 'shutDown'; expected 0, have 2 1354 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ widgets.c:127:6: note: declared here 127 | void shutDown(); | ^~~~~~~~ widgets.c:1355:18: error: too many arguments to function 'buildMap'; expected 0, have 3 1355 | buildMap(Context, Context->wintype, 0); | ^~~~~~~~ ~~~~~~~ widgets.c:21:25: note: declared here 21 | extern void buildMap(); | ^~~~~~~~ widgets.c: In function 'checkZoomSettings': widgets.c:1363:1: warning: old-style function definition [-Wold-style-definition] 1363 | checkZoomSettings(zoom) | ^~~~~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'readRC': sunclock.c:1773:1: warning: old-style function definition [-Wold-style-definition] 1773 | readRC(fname, verbosity) | ^~~~~~ sunclock.c:1776:1: error: number of arguments doesn't match prototype 1776 | { | ^ sunclock.c:1120:1: error: prototype declaration 1120 | readRC(); | ^~~~~~ --- widgets.o --- widgets.c: In function 'setZoomAspect': widgets.c:1379:5: warning: old-style function definition [-Wold-style-definition] 1379 | int setZoomAspect(Context, mode) | ^~~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'getContext': sunclock.c:1814:1: warning: old-style function definition [-Wold-style-definition] 1814 | getContext(win) | ^~~~~~~~~~ sunclock.c: In function 'getFont': sunclock.c:1835:1: warning: old-style function definition [-Wold-style-definition] 1835 | getFont(num) | ^~~~~~~ sunclock.c: In function 'getFonts': sunclock.c:1856:1: warning: old-style function definition [-Wold-style-definition] 1856 | getFonts(Context) | ^~~~~~~~ sunclock.c: In function 'getColor': sunclock.c:1902:1: warning: old-style function definition [-Wold-style-definition] 1902 | getColor(Context, num) | ^~~~~~~~ --- widgets.o --- widgets.c: In function 'setZoomDimension': widgets.c:1459:1: warning: old-style function definition [-Wold-style-definition] 1459 | setZoomDimension(Context) | ^~~~~~~~~~~~~~~~ widgets.c: In function 'showZoomHint': widgets.c:1492:1: warning: old-style function definition [-Wold-style-definition] 1492 | showZoomHint(but_pos) | ^~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'createGData': sunclock.c:1930:1: warning: old-style function definition [-Wold-style-definition] 1930 | createGData(Context, private) | ^~~~~~~~~~~ sunclock.c:1967:41: error: too many arguments to function 'salloc'; expected 0, have 1 1967 | Context->gdata = (GraphicData *)salloc(sizeof(GraphicData)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'setupZoom': widgets.c:1533:1: warning: old-style function definition [-Wold-style-definition] 1533 | setupZoom(mode) | ^~~~~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ sunclock.c: In function 'createGCs': sunclock.c:2016:1: warning: old-style function definition [-Wold-style-definition] 2016 | createGCs(Context) | ^~~~~~~~~ sunclock.c: In function 'clearStrip': sunclock.c:2060:1: warning: old-style function definition [-Wold-style-definition] 2060 | clearStrip(Context) | ^~~~~~~~~~ --- widgets.o --- widgets.c:1604:15: error: too many arguments to function 'readVMF'; expected 0, have 2 1604 | code = readVMF(Zoom_img_file, ZoomCaller); | ^~~~~~~ ~~~~~~~~~~~~~ widgets.c:20:25: note: declared here 20 | extern int readVMF(); | ^~~~~~~ --- sunclock.o --- sunclock.c: In function 'setTZ': sunclock.c:2078:1: warning: old-style function definition [-Wold-style-definition] 2078 | setTZ(cptr) | ^~~~~ --- widgets.o --- widgets.c:1612:39: error: too many arguments to function 'salloc'; expected 0, have 1 1612 | ZoomCaller->bits = (char *) salloc(num); | ^~~~~~ ~~~ widgets.c:11:17: note: declared here 11 | extern char * salloc(); | ^~~~~~ --- sunclock.o --- sunclock.c: In function 'sunParams': sunclock.c:2123:1: warning: old-style function definition [-Wold-style-definition] 2123 | sunParams(gtime, sunlong, sundec, city) | ^~~~~~~~~ sunclock.c:2136:14: error: too many arguments to function 'jtime'; expected 0, have 1 2136 | jt = jtime(&ctp); | ^~~~~ ~~~~ sunclock.c:135:17: note: declared here 135 | extern double jtime(); | ^~~~~ sunclock.c:2137:9: error: too many arguments to function 'sunpos'; expected 0, have 6 2137 | sunpos(jt, False, &sunra, sundec, &sunrv, &junk); | ^~~~~~ ~~ sunclock.c:138:17: note: declared here 138 | extern void sunpos(); | ^~~~~~ sunclock.c:2138:14: error: too many arguments to function 'gmst'; expected 0, have 1 2138 | gt = gmst(jt); | ^~~~ ~~ sunclock.c:136:17: note: declared here 136 | extern double gmst(); | ^~~~ sunclock.c: In function 'dayLength': --- widgets.o --- widgets.c:1698:14: error: too many arguments to function 'drawDottedRectangle'; expected 0, have 9 1698 | drawDottedRectangle(dpy, Zoom, ZoomCaller->gdata->wingc, | ^~~~~~~~~~~~~~~~~~~ ~~~ widgets.c:31:25: note: declared here 31 | extern void drawDottedRectangle(); | ^~~~~~~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:2158:1: warning: old-style function definition [-Wold-style-definition] 2158 | dayLength(gtime, lat) | ^~~~~~~~~ sunclock.c: In function 'setDayParams': sunclock.c:2189:1: warning: old-style function definition [-Wold-style-definition] 2189 | setDayParams(Context) | ^~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'PopZoom': widgets.c:1751:1: warning: old-style function definition [-Wold-style-definition] 1751 | PopZoom(Context) | ^~~~~~~ widgets.c:1753:1: error: number of arguments doesn't match prototype 1753 | { | ^ widgets.c:1530:1: error: prototype declaration 1530 | PopZoom(); | ^~~~~~~ --- sunclock.o --- sunclock.c: In function 'num2str': sunclock.c:2242:1: warning: old-style function definition [-Wold-style-definition] 2242 | num2str(value, string, dms) | ^~~~~~~ sunclock.c: In function 'showHours': sunclock.c:2272:1: warning: old-style function definition [-Wold-style-definition] 2272 | showHours(Context) | ^~~~~~~~~ --- widgets.o --- widgets.c: In function 'activateZoom': widgets.c:1807:1: warning: old-style function definition [-Wold-style-definition] 1807 | activateZoom(Context, rebuild) | ^~~~~~~~~~~~ widgets.c:1820:11: error: too many arguments to function 'shutDown'; expected 0, have 2 1820 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ widgets.c:127:6: note: declared here 127 | void shutDown(); | ^~~~~~~~ widgets.c:1821:11: error: too many arguments to function 'buildMap'; expected 0, have 3 1821 | buildMap(Context, Context->wintype, 0); | ^~~~~~~~ ~~~~~~~ widgets.c:21:25: note: declared here 21 | extern void buildMap(); | ^~~~~~~~ widgets.c: In function 'processZoomAction': --- sunclock.o --- sunclock.c: In function 'drawTextStrip': sunclock.c:2305:1: warning: old-style function definition [-Wold-style-definition] 2305 | drawTextStrip(Context, s, l) | ^~~~~~~~~~~~~ --- widgets.o --- widgets.c:1831:6: warning: old-style function definition [-Wold-style-definition] 1831 | void processZoomAction(Context, x, y, button, evtype) | ^~~~~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'writeStrip': sunclock.c:2326:1: warning: old-style function definition [-Wold-style-definition] 2326 | writeStrip(Context) | ^~~~~~~~~~ --- widgets.o --- widgets.c:1864:21: error: too many arguments to function 'PopZoom'; expected 0, have 1 1864 | PopZoom(Context); | ^~~~~~~ ~~~~~~~ widgets.c:1751:1: note: declared here 1751 | PopZoom(Context) | ^~~~~~~ widgets.c:1868:18: error: too many arguments to function 'processKey'; expected 0, have 2 1868 | processKey(Context->win, tolower(zoom_newhint)); | ^~~~~~~~~~ ~~~~~~~~~~~~ widgets.c:19:25: note: declared here 19 | extern void processKey(); | ^~~~~~~~~~ widgets.c: In function 'showOptionHint': widgets.c:1943:1: warning: old-style function definition [-Wold-style-definition] 1943 | showOptionHint(but_pos) | ^~~~~~~~~~~~~~ widgets.c: In function 'showCaret': widgets.c:1992:1: warning: old-style function definition [-Wold-style-definition] 1992 | showCaret(Context, win, entry, x, y, mode) | ^~~~~~~~~ widgets.c: In function 'setupOption': widgets.c:2011:1: warning: old-style function definition [-Wold-style-definition] 2011 | setupOption(mode) | ^~~~~~~~~~~ widgets.c: In function 'resetStringLength': widgets.c:2063:1: warning: old-style function definition [-Wold-style-definition] 2063 | resetStringLength(max, entry) | ^~~~~~~~~~~~~~~~~ widgets.c: In function 'PopOption': widgets.c:2085:1: warning: old-style function definition [-Wold-style-definition] 2085 | PopOption(Context) | ^~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'initShading': sunclock.c:2588:1: warning: old-style function definition [-Wold-style-definition] 2588 | initShading(Context) | ^~~~~~~~~~~ sunclock.c:2621:22: error: too many arguments to function 'salloc'; expected 0, have 1 2621 | salloc(Context->geom.width*sizeof(short)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'activateOption': widgets.c:2160:13: error: too many arguments to function 'parseCmdLine'; expected 0, have 1 2160 | i = parseCmdLine(option_entry.string); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:22:25: note: declared here 22 | extern int parseCmdLine(); | ^~~~~~~~~~~~ --- sunclock.o --- sunclock.c:2628:22: error: too many arguments to function 'salloc'; expected 0, have 1 2628 | salloc(Context->geom.width*sizeof(short)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:2176:15: error: too many arguments to function 'clearNightArea'; expected 0, have 1 2176 | clearNightArea(Context); | ^~~~~~~~~~~~~~ ~~~~~~~ widgets.c:28:25: note: declared here 28 | extern void clearNightArea(); | ^~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:2178:18: error: too many arguments to function 'drawCities'; expected 0, have 1 2178 | drawCities(Context); | ^~~~~~~~~~ ~~~~~~~ --- sunclock.o --- sunclock.c: In function 'makeContext': --- widgets.o --- widgets.c:29:25: note: declared here 29 | extern void drawCities(); | ^~~~~~~~~~ widgets.c:2179:18: error: too many arguments to function 'drawSunAndMoon'; expected 0, have 1 2179 | drawSunAndMoon(Context); | ^~~~~~~~~~~~~~ ~~~~~~~ widgets.c:30:25: note: declared here 30 | extern void drawSunAndMoon(); | ^~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:2637:1: warning: old-style function definition [-Wold-style-definition] 2637 | makeContext(Context, build) | ^~~~~~~~~~~ sunclock.c:2652:41: error: too many arguments to function 'salloc'; expected 0, have 1 2652 | Context->spotsizes = (int *) salloc(city_cat * sizeof(int)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:2186:9: error: too many arguments to function 'shutDown'; expected 0, have 2 2186 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:127:6: note: declared here 127 | void shutDown(); | ^~~~~~~~ --- sunclock.o --- sunclock.c:2653:42: error: too many arguments to function 'salloc'; expected 0, have 1 2653 | Context->sizelimits = (int *) salloc(city_cat * sizeof(int)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c:2211:13: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 2211 | StringReAlloc(&Context->clock_img_file, Clock_img_file); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:2677:9: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 2677 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:2213:13: error: too many arguments to function 'StringReAlloc'; expected 0, have 2 2213 | StringReAlloc(&Context->map_img_file, Map_img_file); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ widgets.c:12:17: note: declared here 12 | extern void StringReAlloc(); | ^~~~~~~~~~~~~ widgets.c:2214:9: error: too many arguments to function 'buildMap'; expected 0, have 3 2214 | buildMap(Context, Context->wintype, 0); | ^~~~~~~~ ~~~~~~~ --- sunclock.o --- sunclock.c:2689:53: error: too many arguments to function 'salloc'; expected 0, have 1 2689 | Context->daypixel = (unsigned char *) salloc(256*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:21:25: note: declared here 21 | extern void buildMap(); | ^~~~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ --- widgets.o --- widgets.c: In function 'processOptionAction': --- sunclock.o --- sunclock.c:2690:55: error: too many arguments to function 'salloc'; expected 0, have 1 2690 | Context->nightpixel = (unsigned char *) salloc(256*sizeof(char)); | ^~~~~~ ~~~~~~~~~~~~~~~~ --- widgets.o --- widgets.c:2218:1: warning: old-style function definition [-Wold-style-definition] 2218 | processOptionAction(Context, x, y, button, evtype) | ^~~~~~~~~~~~~~~~~~~ --- sunclock.o --- sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ sunclock.c:2703:39: error: too many arguments to function 'salloc'; expected 0, have 1 2703 | Context->daywave = (double *) salloc( | ^~~~~~ 2704 | (2*Context->geom.height+Context->geom.width)*sizeof(double)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ sunclock.c: In function 'DarkenPixel': --- widgets.o --- widgets.c:2271:18: error: too many arguments to function 'processKey'; expected 0, have 2 2271 | processKey(Option, key); | ^~~~~~~~~~ ~~~~~~ widgets.c:19:25: note: declared here 19 | extern void processKey(); | ^~~~~~~~~~ --- sunclock.o --- sunclock.c:2712:1: warning: old-style function definition [-Wold-style-definition] 2712 | DarkenPixel(Context, x, y, t) | ^~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'showUrbanHint': widgets.c:2280:1: warning: old-style function definition [-Wold-style-definition] 2280 | showUrbanHint(str) | ^~~~~~~~~~~~~ widgets.c: In function 'updateUrbanEntries': widgets.c:2322:1: warning: old-style function definition [-Wold-style-definition] 2322 | updateUrbanEntries(Context, city) | ^~~~~~~~~~~~~~~~~~ widgets.c:2350:11: error: too many arguments to function 'num2str'; expected 0, have 3 2350 | ptr = num2str(city->lat, urban_entry[2].string, Context->flags.dms); | ^~~~~~~ ~~~~~~~~~ widgets.c:18:25: note: declared here 18 | extern char * num2str(); | ^~~~~~~ --- sunclock.o --- sunclock.c: In function 'howDark': sunclock.c:2814:1: warning: old-style function definition [-Wold-style-definition] 2814 | howDark(Context, i, j) | ^~~~~~~ --- widgets.o --- widgets.c:2352:11: error: too many arguments to function 'num2str'; expected 0, have 3 2352 | ptr = num2str(city->lon, urban_entry[3].string, Context->flags.dms); | ^~~~~~~ ~~~~~~~~~ widgets.c:18:25: note: declared here 18 | extern char * num2str(); | ^~~~~~~ widgets.c: In function 'setupUrban': widgets.c:2359:1: warning: old-style function definition [-Wold-style-definition] 2359 | setupUrban(mode) | ^~~~~~~~~~ --- sunclock.o --- sunclock.c: In function 'SetPixelLight': sunclock.c:2841:1: warning: old-style function definition [-Wold-style-definition] 2841 | SetPixelLight(Context, i, j, pixel) | ^~~~~~~~~~~~~ sunclock.c: In function 'XPutStringImage': sunclock.c:2855:1: warning: old-style function definition [-Wold-style-definition] 2855 | XPutStringImage(Context, x, y, s, l, mode) | ^~~~~~~~~~~~~~~ --- widgets.o --- widgets.c: In function 'PopUrban': widgets.c:2444:1: warning: old-style function definition [-Wold-style-definition] 2444 | PopUrban(Context) | ^~~~~~~~ --- sunclock.o --- sunclock.c: In function 'int_latitude': sunclock.c:2930:1: warning: old-style function definition [-Wold-style-definition] 2930 | int_latitude(Context, lat) | ^~~~~~~~~~~~ sunclock.c: In function 'int_longitude': sunclock.c:2940:1: warning: old-style function definition [-Wold-style-definition] 2940 | int_longitude(Context, lon) | ^~~~~~~~~~~~~ sunclock.c: In function 'drawObject': sunclock.c:2954:1: warning: old-style function definition [-Wold-style-definition] 2954 | drawObject(Context, lon, lat, mode, color, name) | ^~~~~~~~~~ sunclock.c:2967:33: error: expected identifier or '(' before 'bool' 2967 | int i, j, dx, dy, u, which, bool=0; | ^~~~ --- widgets.o --- widgets.c: In function 'processUrbanAction': widgets.c:2502:1: warning: old-style function definition [-Wold-style-definition] 2502 | processUrbanAction(Context, x, y, button, evtype) | ^~~~~~~~~~~~~~~~~~ widgets.c:2569:18: error: too many arguments to function 'processKey'; expected 0, have 2 2569 | processKey(Urban, key); | ^~~~~~~~~~ ~~~~~ widgets.c:19:25: note: declared here 19 | extern void processKey(); | ^~~~~~~~~~ widgets.c: In function 'parentContext': widgets.c:2582:1: warning: old-style function definition [-Wold-style-definition] 2582 | parentContext(Context) | ^~~~~~~~~~~~~ widgets.c: In function 'setAuxilWins': widgets.c:2594:1: warning: old-style function definition [-Wold-style-definition] 2594 | setAuxilWins(Context, mode) | ^~~~~~~~~~~~ widgets.c:2617:27: error: initialization of 'void (*)(Sundata *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 2617 | &PopMenu, &PopFilesel, &PopZoom, &PopOption, &PopUrban }; | ^ widgets.c:2617:27: note: (near initialization for 'pop_proc[2]') widgets.c:1751:1: note: 'PopZoom' declared here 1751 | PopZoom(Context) | ^~~~~~~ widgets.c: In function 'RaiseAndFocus': widgets.c:2681:6: warning: old-style function definition [-Wold-style-definition] 2681 | void RaiseAndFocus(win) | ^~~~~~~~~~~~~ widgets.c: In function 'destroyGCs': widgets.c:2694:1: warning: old-style function definition [-Wold-style-definition] 2694 | destroyGCs(Context) | ^~~~~~~~~~ widgets.c: In function 'shutDown': widgets.c:2722:1: warning: old-style function definition [-Wold-style-definition] 2722 | shutDown(Context, all) | ^~~~~~~~ widgets.c:2725:1: error: number of arguments doesn't match prototype 2725 | { | ^ widgets.c:127:6: error: prototype declaration 127 | void shutDown(); | ^~~~~~~~ *** [widgets.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/time/sunclock/work/sunclock-3.57 --- sunclock.o --- sunclock.c:3049:14: error: expected ')' before '=' token 3049 | (bool=(Context->flags.objectmode==2 && mode<-1))) { | ~ ^ | ) sunclock.c:3049:57: error: expected expression before ')' token 3049 | (bool=(Context->flags.objectmode==2 && mode<-1))) { | ^ sunclock.c: In function 'drawCities': sunclock.c:3080:1: warning: old-style function definition [-Wold-style-definition] 3080 | drawCities(Context) | ^~~~~~~~~~ sunclock.c: In function 'drawMarks': sunclock.c:3120:1: warning: old-style function definition [-Wold-style-definition] 3120 | drawMarks(Context) | ^~~~~~~~~ sunclock.c: In function 'drawLabels': sunclock.c:3140:1: warning: old-style function definition [-Wold-style-definition] 3140 | drawLabels(Context) | ^~~~~~~~~~ sunclock.c: In function 'getSpacing': sunclock.c:3173:1: warning: old-style function definition [-Wold-style-definition] 3173 | getSpacing(Context, mode) | ^~~~~~~~~~ sunclock.c: In function 'drawParallel': sunclock.c:3204:1: warning: old-style function definition [-Wold-style-definition] 3204 | drawParallel(Context, pixel, lat, step, thickness, text, numdigits) | ^~~~~~~~~~~~ sunclock.c: In function 'drawParallels': sunclock.c:3287:1: warning: old-style function definition [-Wold-style-definition] 3287 | drawParallels(Context) | ^~~~~~~~~~~~~ sunclock.c: In function 'drawMeridian': sunclock.c:3345:1: warning: old-style function definition [-Wold-style-definition] 3345 | drawMeridian(Context, lon, step, thickness, numdigits) | ^~~~~~~~~~~~ sunclock.c: In function 'drawMeridians': sunclock.c:3416:1: warning: old-style function definition [-Wold-style-definition] 3416 | drawMeridians(Context) | ^~~~~~~~~~~~~ sunclock.c: In function 'drawLines': sunclock.c:3454:1: warning: old-style function definition [-Wold-style-definition] 3454 | drawLines(Context) | ^~~~~~~~~ sunclock.c: In function 'drawSunAndMoon': sunclock.c:3470:1: warning: old-style function definition [-Wold-style-definition] 3470 | drawSunAndMoon(Context) | ^~~~~~~~~~~~~~ sunclock.c: In function 'drawBottomline': sunclock.c:3487:1: warning: old-style function definition [-Wold-style-definition] 3487 | drawBottomline(Context) | ^~~~~~~~~~~~~~ sunclock.c: In function 'drawAll': sunclock.c:3502:1: warning: old-style function definition [-Wold-style-definition] 3502 | drawAll(Context) | ^~~~~~~ sunclock.c: In function 'showMapImage': sunclock.c:3518:1: warning: old-style function definition [-Wold-style-definition] 3518 | showMapImage(Context) | ^~~~~~~~~~~~ sunclock.c: In function 'pulseMarks': sunclock.c:3554:1: warning: old-style function definition [-Wold-style-definition] 3554 | pulseMarks(Context) | ^~~~~~~~~~ sunclock.c: In function 'clearNightArea': sunclock.c:3629:1: warning: old-style function definition [-Wold-style-definition] 3629 | clearNightArea(Context) | ^~~~~~~~~~~~~~ sunclock.c: In function 'moveNightArea': sunclock.c:3649:1: warning: old-style function definition [-Wold-style-definition] 3649 | moveNightArea(Context) | ^~~~~~~~~~~~~ sunclock.c: In function 'drawShadedArea': sunclock.c:3847:1: warning: old-style function definition [-Wold-style-definition] 3847 | drawShadedArea (Context) | ^~~~~~~~~~~~~~ sunclock.c: In function 'markLocation': sunclock.c:3872:1: warning: old-style function definition [-Wold-style-definition] 3872 | markLocation(Context, name) | ^~~~~~~~~~~~ sunclock.c: In function 'checkLocation': sunclock.c:3888:1: warning: old-style function definition [-Wold-style-definition] 3888 | checkLocation(Context, name) | ^~~~~~~~~~~~~ sunclock.c: In function 'updateImage': sunclock.c:3909:1: warning: old-style function definition [-Wold-style-definition] 3909 | updateImage(Context) | ^~~~~~~~~~~ sunclock.c:3932:16: error: too many arguments to function 'phase'; expected 0, have 9 3932 | (void) phase(Context->time + Context->jump, | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:139:17: note: declared here 139 | extern double phase(); | ^~~~~ sunclock.c: In function 'setPosition1': sunclock.c:3966:1: warning: old-style function definition [-Wold-style-definition] 3966 | setPosition1(Context, x, y) | ^~~~~~~~~~~~ sunclock.c: In function 'updateUrban': sunclock.c:3979:1: warning: old-style function definition [-Wold-style-definition] 3979 | updateUrban(Context, city) | ^~~~~~~~~~~ sunclock.c:3985:11: error: too many arguments to function 'PopUrban'; expected 0, have 1 3985 | PopUrban(Context); | ^~~~~~~~ ~~~~~~~ sunclock.c:196:13: note: declared here 196 | extern void PopUrban(); | ^~~~~~~~ sunclock.c:3991:8: error: too many arguments to function 'updateUrbanEntries'; expected 0, have 2 3991 | updateUrbanEntries(Context, city); | ^~~~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:194:13: note: declared here 194 | extern void updateUrbanEntries(); | ^~~~~~~~~~~~~~~~~~ sunclock.c:3992:8: error: too many arguments to function 'setupUrban'; expected 0, have 1 3992 | setupUrban(0); | ^~~~~~~~~~ ~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c: In function 'processPoint': sunclock.c:4004:1: warning: old-style function definition [-Wold-style-definition] 4004 | processPoint(Context, x, y) | ^~~~~~~~~~~~ sunclock.c: In function 'report_failure': sunclock.c:4104:1: warning: old-style function definition [-Wold-style-definition] 4104 | report_failure(path, code) | ^~~~~~~~~~~~~~ sunclock.c: In function 'quantize': sunclock.c:4146:1: warning: old-style function definition [-Wold-style-definition] 4146 | quantize(Context) | ^~~~~~~~ sunclock.c: In function 'createImage': sunclock.c:4308:1: warning: old-style function definition [-Wold-style-definition] 4308 | createImage(Context) | ^~~~~~~~~~~ sunclock.c:4378:13: error: too many arguments to function 'readVMF'; expected 0, have 2 4378 | code = readVMF(path, Context); | ^~~~~~~ ~~~~ sunclock.c:142:17: note: declared here 142 | extern int readVMF(); | ^~~~~~~ sunclock.c:4402:14: error: too many arguments to function 'readGIF'; expected 0, have 2 4402 | code = readGIF(path, Context); | ^~~~~~~ ~~~~ sunclock.c:143:17: note: declared here 143 | extern int readGIF(); | ^~~~~~~ sunclock.c:4405:14: error: too many arguments to function 'readJPEG'; expected 0, have 2 4405 | code = readJPEG(path, Context); | ^~~~~~~~ ~~~~ sunclock.c:144:17: note: declared here 144 | extern int readJPEG(); | ^~~~~~~~ sunclock.c:4408:14: error: too many arguments to function 'readPNG'; expected 0, have 2 4408 | code = readPNG(path, Context); | ^~~~~~~ ~~~~ sunclock.c:146:17: note: declared here 146 | extern int readPNG(); | ^~~~~~~ sunclock.c:4411:14: error: too many arguments to function 'readVMF'; expected 0, have 2 4411 | code = readVMF(path, Context); | ^~~~~~~ ~~~~ sunclock.c:142:17: note: declared here 142 | extern int readVMF(); | ^~~~~~~ sunclock.c:4414:14: error: too many arguments to function 'readXPM'; expected 0, have 2 4414 | code = readXPM(path, Context); | ^~~~~~~ ~~~~ sunclock.c:145:17: note: declared here 145 | extern int readXPM(); | ^~~~~~~ sunclock.c: In function 'createWorkImage': sunclock.c:4445:1: warning: old-style function definition [-Wold-style-definition] 4445 | createWorkImage(Context) | ^~~~~~~~~~~~~~~ sunclock.c:4458:36: error: too many arguments to function 'salloc'; expected 0, have 1 4458 | Context->ximdata = (char *)salloc(size); | ^~~~~~ ~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ sunclock.c: In function 'GetVRoot': sunclock.c:4464:8: warning: old-style function definition [-Wold-style-definition] 4464 | Window GetVRoot(dpy) | ^~~~~~~~ sunclock.c: In function 'drawDottedRectangle': sunclock.c:4507:1: warning: old-style function definition [-Wold-style-definition] 4507 | drawDottedRectangle(dpy, w, gc, x, y, a, b, pix1, pix2) | ^~~~~~~~~~~~~~~~~~~ sunclock.c: In function 'drawImageToRootWindow': sunclock.c:4530:1: warning: old-style function definition [-Wold-style-definition] 4530 | drawImageToRootWindow(Context, mode) | ^~~~~~~~~~~~~~~~~~~~~ sunclock.c: In function 'warningNew': sunclock.c:4650:1: warning: old-style function definition [-Wold-style-definition] 4650 | warningNew(Context) | ^~~~~~~~~~ sunclock.c: In function 'buildMap': sunclock.c:4662:1: warning: old-style function definition [-Wold-style-definition] 4662 | buildMap(Context, wintype, build) | ^~~~~~~~ sunclock.c:4678:38: error: too many arguments to function 'salloc'; expected 0, have 1 4678 | NewContext = (struct Sundata *)salloc(sizeof(struct Sundata)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ sunclock.c:4716:10: error: too many arguments to function 'shutDown'; expected 0, have 2 4716 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:4720:10: error: too many arguments to function 'shutDown'; expected 0, have 2 4720 | shutDown(Context, -1); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:4722:4: error: too many arguments to function 'checkGeom'; expected 0, have 2 4722 | checkGeom(Context, 0); | ^~~~~~~~~ ~~~~~~~ sunclock.c:160:13: note: declared here 160 | extern void checkGeom(); | ^~~~~~~~~ sunclock.c:4728:7: error: too many arguments to function 'setClassHints'; expected 0, have 2 4728 | setClassHints(Context->win, wintype); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:163:13: note: declared here 163 | extern void setClassHints(); | ^~~~~~~~~~~~~ sunclock.c:4729:7: error: too many arguments to function 'setSizeHints'; expected 0, have 2 4729 | setSizeHints(Context, wintype); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:162:13: note: declared here 162 | extern void setSizeHints(); | ^~~~~~~~~~~~ sunclock.c:4730:7: error: too many arguments to function 'getPlacement'; expected 0, have 5 4730 | getPlacement(Context->win, &Context->geom.x, &Context->geom.y, | ^~~~~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:152:13: note: declared here 152 | extern int getPlacement(); | ^~~~~~~~~~~~ sunclock.c:4739:10: error: too many arguments to function 'setAuxilWins'; expected 0, have 2 4739 | setAuxilWins(Context, REMAP); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:200:13: note: declared here 200 | extern void setAuxilWins(); | ^~~~~~~~~~~~ sunclock.c:4741:10: error: too many arguments to function 'setAuxilWins'; expected 0, have 2 4741 | setAuxilWins(Context, RESET); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:200:13: note: declared here 200 | extern void setAuxilWins(); | ^~~~~~~~~~~~ sunclock.c:4744:7: error: too many arguments to function 'setProtocols'; expected 0, have 2 4744 | setProtocols(Context, Context->wintype); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:165:13: note: declared here 165 | extern void setProtocols(); | ^~~~~~~~~~~~ sunclock.c:4755:22: error: too many arguments to function 'newWindow'; expected 0, have 3 4755 | Context->win = newWindow(Context, &Context->geom, wintype); | ^~~~~~~~~ ~~~~~~~ sunclock.c:156:15: note: declared here 156 | extern Window newWindow(); | ^~~~~~~~~ sunclock.c:4756:7: error: too many arguments to function 'setSizeHints'; expected 0, have 2 4756 | setSizeHints(Context, wintype); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:162:13: note: declared here 162 | extern void setSizeHints(); | ^~~~~~~~~~~~ sunclock.c:4761:7: error: too many arguments to function 'setAuxilWins'; expected 0, have 2 4761 | setAuxilWins(Context, REATTRIB); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:200:13: note: declared here 200 | extern void setAuxilWins(); | ^~~~~~~~~~~~ sunclock.c:4762:7: error: too many arguments to function 'setProtocols'; expected 0, have 2 4762 | setProtocols(Context, wintype); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:165:13: note: declared here 165 | extern void setProtocols(); | ^~~~~~~~~~~~ sunclock.c: In function 'processStringEntry': sunclock.c:4780:1: warning: old-style function definition [-Wold-style-definition] 4780 | processStringEntry(keysym, entry) | ^~~~~~~~~~~~~~~~~~ sunclock.c: In function 'processKey': sunclock.c:4856:1: warning: old-style function definition [-Wold-style-definition] 4856 | processKey(win, keysym) | ^~~~~~~~~~ sunclock.c:4882:19: error: too many arguments to function 'PopFilesel'; expected 0, have 1 4882 | PopFilesel(Context); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:174:13: note: declared here 174 | extern void PopFilesel(); | ^~~~~~~~~~ sunclock.c:4915:12: error: too many arguments to function 'setupFilesel'; expected 0, have 1 4915 | setupFilesel(1); | ^~~~~~~~~~~~ ~ sunclock.c:173:13: note: declared here 173 | extern void setupFilesel(); | ^~~~~~~~~~~~ sunclock.c:4923:19: error: too many arguments to function 'PopZoom'; expected 0, have 1 4923 | PopZoom(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:182:13: note: declared here 182 | extern void PopZoom(); | ^~~~~~~ sunclock.c:4935:19: error: too many arguments to function 'PopOption'; expected 0, have 1 4935 | PopOption(Context); | ^~~~~~~~~ ~~~~~~~ sunclock.c:189:13: note: declared here 189 | extern void PopOption(); | ^~~~~~~~~ sunclock.c:4943:16: error: too many arguments to function 'setupOption'; expected 0, have 1 4943 | setupOption(0); | ^~~~~~~~~~~ ~ sunclock.c:188:13: note: declared here 188 | extern void setupOption(); | ^~~~~~~~~~~ sunclock.c:4954:19: error: too many arguments to function 'PopUrban'; expected 0, have 1 4954 | PopUrban(Context); | ^~~~~~~~ ~~~~~~~ sunclock.c:196:13: note: declared here 196 | extern void PopUrban(); | ^~~~~~~~ sunclock.c:4963:16: error: too many arguments to function 'setupUrban'; expected 0, have 1 4963 | setupUrban(0); | ^~~~~~~~~~ ~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:4971:27: error: too many arguments to function 'PopMenu'; expected 0, have 1 4971 | if (do_menu) PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:4980:17: error: too many arguments to function 'setupOption'; expected 0, have 1 4980 | setupOption(0); | ^~~~~~~~~~~ ~ sunclock.c:188:13: note: declared here 188 | extern void setupOption(); | ^~~~~~~~~~~ sunclock.c:4990:17: error: too many arguments to function 'setupUrban'; expected 0, have 1 4990 | setupUrban(0); | ^~~~~~~~~~ ~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:5009:20: error: too many arguments to function 'setupUrban'; expected 0, have 1 5009 | setupUrban(0); | ^~~~~~~~~~ ~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:5061:20: error: too many arguments to function 'setupUrban'; expected 0, have 1 5061 | setupUrban(0); | ^~~~~~~~~~ ~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:5070:17: error: too many arguments to function 'adjustGeom'; expected 0, have 2 5070 | adjustGeom(Context, 0); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:161:13: note: declared here 161 | extern void adjustGeom(); | ^~~~~~~~~~ sunclock.c:5075:17: error: too many arguments to function 'shutDown'; expected 0, have 2 5075 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5102:29: error: too many arguments to function 'getNumCmd'; expected 0, have 1 5102 | showOptionHint(getNumCmd(key)); | ^~~~~~~~~ ~~~ sunclock.c:154:12: note: declared here 154 | extern int getNumCmd(); | ^~~~~~~~~ sunclock.c:5102:14: error: too many arguments to function 'showOptionHint'; expected 0, have 1 5102 | showOptionHint(getNumCmd(key)); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ sunclock.c:186:13: note: declared here 186 | extern void showOptionHint(); | ^~~~~~~~~~~~~~ sunclock.c:5110:14: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 5110 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ sunclock.c:5112:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5112 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5119:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5119 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5126:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5126 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5133:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5133 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5140:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5140 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5164:20: error: too many arguments to function 'adjustGeom'; expected 0, have 2 5164 | adjustGeom(Context, 0); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:161:13: note: declared here 161 | extern void adjustGeom(); | ^~~~~~~~~~ sunclock.c:5173:17: error: too many arguments to function 'shutDown'; expected 0, have 2 5173 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5189:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5189 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5196:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5196 | activateZoom(Context, 1); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5204:17: error: too many arguments to function 'activateZoom'; expected 0, have 2 5204 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5223:14: error: too many arguments to function 'adjustGeom'; expected 0, have 2 5223 | adjustGeom(Context, 1); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:161:13: note: declared here 161 | extern void adjustGeom(); | ^~~~~~~~~~ sunclock.c:5225:14: error: too many arguments to function 'setSizeHints'; expected 0, have 2 5225 | setSizeHints(Context, Context->wintype); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:162:13: note: declared here 162 | extern void setSizeHints(); | ^~~~~~~~~~~~ sunclock.c:5226:14: error: too many arguments to function 'setClassHints'; expected 0, have 2 5226 | setClassHints(Context->win, Context->wintype); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:163:13: note: declared here 163 | extern void setClassHints(); | ^~~~~~~~~~~~~ sunclock.c:5233:14: error: too many arguments to function 'shutDown'; expected 0, have 2 5233 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5243:17: error: too many arguments to function 'activateZoom'; expected 0, have 2 5243 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5251:17: error: too many arguments to function 'activateZoom'; expected 0, have 2 5251 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5259:14: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 5259 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ sunclock.c:5261:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5261 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5268:14: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 5268 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ sunclock.c:5270:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5270 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5284:14: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 5284 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ sunclock.c:5286:14: error: too many arguments to function 'activateZoom'; expected 0, have 2 5286 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5342:17: error: too many arguments to function 'PopFilesel'; expected 0, have 1 5342 | PopFilesel(Context); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:174:13: note: declared here 174 | extern void PopFilesel(); | ^~~~~~~~~~ sunclock.c:5349:20: error: too many arguments to function 'PopFilesel'; expected 0, have 1 5349 | PopFilesel(Context); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:174:13: note: declared here 174 | extern void PopFilesel(); | ^~~~~~~~~~ sunclock.c:5350:20: error: too many arguments to function 'PopFilesel'; expected 0, have 1 5350 | PopFilesel(Context); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:174:13: note: declared here 174 | extern void PopFilesel(); | ^~~~~~~~~~ sunclock.c:5356:16: error: too many arguments to function 'PopMenu'; expected 0, have 1 5356 | PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:5375:17: error: too many arguments to function 'PopMenu'; expected 0, have 1 5375 | PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:5379:20: error: too many arguments to function 'PopMenu'; expected 0, have 1 5379 | PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:5380:20: error: too many arguments to function 'PopMenu'; expected 0, have 1 5380 | PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:5382:24: error: too many arguments to function 'getState'; expected 0, have 1 5382 | if (getState(Menu) == IsViewable) { | ^~~~~~~~ ~~~~ sunclock.c:153:13: note: declared here 153 | extern int getState(); | ^~~~~~~~ sunclock.c:5391:14: error: too many arguments to function 'setAuxilWins'; expected 0, have 2 5391 | setAuxilWins(Context, ICONIFY); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:200:13: note: declared here 200 | extern void setAuxilWins(); | ^~~~~~~~~~~~ sunclock.c:5403:27: error: too many arguments to function 'PopMenu'; expected 0, have 1 5403 | if (do_menu) PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:5404:30: error: too many arguments to function 'PopFilesel'; expected 0, have 1 5404 | if (do_filesel) PopFilesel(Context); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:174:13: note: declared here 174 | extern void PopFilesel(); | ^~~~~~~~~~ sunclock.c:5406:17: error: too many arguments to function 'shutDown'; expected 0, have 2 5406 | shutDown(Context, -1); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5408:17: error: too many arguments to function 'shutDown'; expected 0, have 2 5408 | shutDown(Context, 1); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5459:17: error: too many arguments to function 'PopOption'; expected 0, have 1 5459 | PopOption(Context); | ^~~~~~~~~ ~~~~~~~ sunclock.c:189:13: note: declared here 189 | extern void PopOption(); | ^~~~~~~~~ sunclock.c:5464:20: error: too many arguments to function 'PopOption'; expected 0, have 1 5464 | PopOption(Context); | ^~~~~~~~~ ~~~~~~~ sunclock.c:189:13: note: declared here 189 | extern void PopOption(); | ^~~~~~~~~ sunclock.c:5465:20: error: too many arguments to function 'PopOption'; expected 0, have 1 5465 | PopOption(Context); | ^~~~~~~~~ ~~~~~~~ sunclock.c:189:13: note: declared here 189 | extern void PopOption(); | ^~~~~~~~~ sunclock.c:5486:17: error: too many arguments to function 'shutDown'; expected 0, have 2 5486 | shutDown(Context, -1); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5520:17: error: too many arguments to function 'PopUrban'; expected 0, have 1 5520 | PopUrban(Context); | ^~~~~~~~ ~~~~~~~ sunclock.c:196:13: note: declared here 196 | extern void PopUrban(); | ^~~~~~~~ sunclock.c:5524:21: error: too many arguments to function 'getState'; expected 0, have 1 5524 | if (getState(Urban)!=IsViewable) { | ^~~~~~~~ ~~~~~ sunclock.c:153:13: note: declared here 153 | extern int getState(); | ^~~~~~~~ sunclock.c:5574:17: error: too many arguments to function 'PopZoom'; expected 0, have 1 5574 | PopZoom(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:182:13: note: declared here 182 | extern void PopZoom(); | ^~~~~~~ sunclock.c:5579:20: error: too many arguments to function 'PopZoom'; expected 0, have 1 5579 | PopZoom(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:182:13: note: declared here 182 | extern void PopZoom(); | ^~~~~~~ sunclock.c:5580:20: error: too many arguments to function 'PopZoom'; expected 0, have 1 5580 | PopZoom(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:182:13: note: declared here 182 | extern void PopZoom(); | ^~~~~~~ sunclock.c:5597:16: error: too many arguments to function 'getNumCmd'; expected 0, have 1 5597 | if (getNumCmd(toupper(key))>=0) | ^~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:154:12: note: declared here 154 | extern int getNumCmd(); | ^~~~~~~~~ sunclock.c:5604:12: error: too many arguments to function 'showMenuHint'; expected 0, have 1 5604 | showMenuHint(j); | ^~~~~~~~~~~~ ~ sunclock.c:170:13: note: declared here 170 | extern void showMenuHint(); | ^~~~~~~~~~~~ sunclock.c:5608:16: error: too many arguments to function 'getNumCmd'; expected 0, have 1 5608 | if (getNumCmd(toupper(key))>=0) | ^~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:154:12: note: declared here 154 | extern int getNumCmd(); | ^~~~~~~~~ sunclock.c:5615:12: error: too many arguments to function 'showZoomHint'; expected 0, have 1 5615 | showZoomHint(j); | ^~~~~~~~~~~~ ~ sunclock.c:180:13: note: declared here 180 | extern void showZoomHint(); | ^~~~~~~~~~~~ sunclock.c:5619:16: error: too many arguments to function 'getNumCmd'; expected 0, have 1 5619 | if (getNumCmd(toupper(key))>=0) | ^~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:154:12: note: declared here 154 | extern int getNumCmd(); | ^~~~~~~~~ sunclock.c:5626:12: error: too many arguments to function 'showOptionHint'; expected 0, have 1 5626 | showOptionHint(j); | ^~~~~~~~~~~~~~ ~ sunclock.c:186:13: note: declared here 186 | extern void showOptionHint(); | ^~~~~~~~~~~~~~ sunclock.c: In function 'processMouseEvent': sunclock.c:5635:1: warning: old-style function definition [-Wold-style-definition] 5635 | processMouseEvent(win, x, y, button, evtype) | ^~~~~~~~~~~~~~~~~ sunclock.c:5654:35: error: too many arguments to function 'RaiseAndFocus'; expected 0, have 1 5654 | if (evtype!=MotionNotify) RaiseAndFocus(win); | ^~~~~~~~~~~~~ ~~~ sunclock.c:201:13: note: declared here 201 | extern void RaiseAndFocus(); | ^~~~~~~~~~~~~ sunclock.c:5661:12: error: too many arguments to function 'processMenuAction'; expected 0, have 5 5661 | processMenuAction(MenuCaller, x, y, button, evtype); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~ sunclock.c:171:13: note: declared here 171 | extern void processMenuAction(); | ^~~~~~~~~~~~~~~~~ sunclock.c:5666:12: error: too many arguments to function 'processFileselAction'; expected 0, have 4 5666 | processFileselAction(FileselCaller, x, y, evtype); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ sunclock.c:175:13: note: declared here 175 | extern void processFileselAction(); | ^~~~~~~~~~~~~~~~~~~~ sunclock.c:5671:12: error: too many arguments to function 'processZoomAction'; expected 0, have 5 5671 | processZoomAction(ZoomCaller, x, y, button, evtype); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~ sunclock.c:184:13: note: declared here 184 | extern void processZoomAction(); | ^~~~~~~~~~~~~~~~~ sunclock.c:5676:12: error: too many arguments to function 'processOptionAction'; expected 0, have 5 5676 | processOptionAction(OptionCaller, x, y, button, evtype); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:191:13: note: declared here 191 | extern void processOptionAction(); | ^~~~~~~~~~~~~~~~~~~ sunclock.c:5681:12: error: too many arguments to function 'processUrbanAction'; expected 0, have 5 5681 | processUrbanAction(UrbanCaller, x, y, button, evtype); | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ sunclock.c:198:13: note: declared here 198 | extern void processUrbanAction(); | ^~~~~~~~~~~~~~~~~~ sunclock.c:5689:30: error: too many arguments to function 'getState'; expected 0, have 1 5689 | if (do_menu && getState(Menu)==IsViewable) | ^~~~~~~~ ~~~~ sunclock.c:153:13: note: declared here 153 | extern int getState(); | ^~~~~~~~ sunclock.c:5754:15: error: too many arguments to function 'setZoomAspect'; expected 0, have 2 5754 | setZoomAspect(Context, 3); | ^~~~~~~~~~~~~ ~~~~~~~ sunclock.c:179:13: note: declared here 179 | extern void setZoomAspect(); | ^~~~~~~~~~~~~ sunclock.c:5755:15: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 5755 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ sunclock.c:5758:15: error: too many arguments to function 'activateZoom'; expected 0, have 2 5758 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5791:18: error: too many arguments to function 'setZoomDimension'; expected 0, have 1 5791 | setZoomDimension(Context); | ^~~~~~~~~~~~~~~~ ~~~~~~~ sunclock.c:178:13: note: declared here 178 | extern void setZoomDimension(); | ^~~~~~~~~~~~~~~~ sunclock.c:5793:18: error: too many arguments to function 'activateZoom'; expected 0, have 2 5793 | activateZoom(Context, zoom_active); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:183:13: note: declared here 183 | extern void activateZoom(); | ^~~~~~~~~~~~ sunclock.c:5813:15: error: too many arguments to function 'PopMenu'; expected 0, have 1 5813 | PopMenu(Context); | ^~~~~~~ ~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c: In function 'processResize': sunclock.c:5827:1: warning: old-style function definition [-Wold-style-definition] 5827 | processResize(win) | ^~~~~~~~~~~~~ sunclock.c:5858:19: error: too many arguments to function 'getPlacement'; expected 0, have 5 5858 | if (getPlacement(win, &x, &y, &w, &h)) return; | ^~~~~~~~~~~~ ~~~ sunclock.c:152:13: note: declared here 152 | extern int getPlacement(); | ^~~~~~~~~~~~ sunclock.c:5868:15: error: too many arguments to function 'setSizeHints'; expected 0, have 2 5868 | setSizeHints(NULL, num); | ^~~~~~~~~~~~ ~~~~ sunclock.c:162:13: note: declared here 162 | extern void setSizeHints(); | ^~~~~~~~~~~~ sunclock.c:5869:15: error: too many arguments to function 'setProtocols'; expected 0, have 2 5869 | setProtocols(NULL, num); | ^~~~~~~~~~~~ ~~~~ sunclock.c:165:13: note: declared here 165 | extern void setProtocols(); | ^~~~~~~~~~~~ sunclock.c:5871:18: error: too many arguments to function 'setupFilesel'; expected 0, have 1 5871 | setupFilesel(-1); | ^~~~~~~~~~~~ ~~ sunclock.c:173:13: note: declared here 173 | extern void setupFilesel(); | ^~~~~~~~~~~~ sunclock.c:5877:18: error: too many arguments to function 'setupZoom'; expected 0, have 1 5877 | setupZoom(-1); | ^~~~~~~~~ ~~ sunclock.c:181:13: note: declared here 181 | extern void setupZoom(); | ^~~~~~~~~ sunclock.c:5882:18: error: too many arguments to function 'resetStringLength'; expected 0, have 2 5882 | resetStringLength(w, &option_entry); | ^~~~~~~~~~~~~~~~~ ~ sunclock.c:187:13: note: declared here 187 | extern void resetStringLength(); | ^~~~~~~~~~~~~~~~~ sunclock.c:5883:18: error: too many arguments to function 'setupOption'; expected 0, have 1 5883 | setupOption(-1); | ^~~~~~~~~~~ ~~ sunclock.c:188:13: note: declared here 188 | extern void setupOption(); | ^~~~~~~~~~~ sunclock.c:5887:18: error: too many arguments to function 'setupUrban'; expected 0, have 1 5887 | setupUrban(-2); | ^~~~~~~~~~ ~~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:5891:21: error: too many arguments to function 'resetStringLength'; expected 0, have 2 5891 | resetStringLength(w, &urban_entry[i]); | ^~~~~~~~~~~~~~~~~ ~ sunclock.c:187:13: note: declared here 187 | extern void resetStringLength(); | ^~~~~~~~~~~~~~~~~ sunclock.c:5894:18: error: too many arguments to function 'setupUrban'; expected 0, have 1 5894 | setupUrban(-1); | ^~~~~~~~~~ ~~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:5904:16: error: too many arguments to function 'getPlacement'; expected 0, have 5 5904 | if (getPlacement(win, &x, &y, &w, &h)) return; | ^~~~~~~~~~~~ ~~~ sunclock.c:152:13: note: declared here 152 | extern int getPlacement(); | ^~~~~~~~~~~~ sunclock.c:5924:12: error: too many arguments to function 'adjustGeom'; expected 0, have 2 5924 | adjustGeom(Context, 0); | ^~~~~~~~~~ ~~~~~~~ sunclock.c:161:13: note: declared here 161 | extern void adjustGeom(); | ^~~~~~~~~~ sunclock.c:5926:12: error: too many arguments to function 'shutDown'; expected 0, have 2 5926 | shutDown(Context, 0); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:5927:12: error: too many arguments to function 'setZoomAspect'; expected 0, have 2 5927 | setZoomAspect(Context, 3); | ^~~~~~~~~~~~~ ~~~~~~~ sunclock.c:179:13: note: declared here 179 | extern void setZoomAspect(); | ^~~~~~~~~~~~~ sunclock.c: In function 'doTimeout': sunclock.c:5939:1: warning: old-style function definition [-Wold-style-definition] 5939 | doTimeout(Context) | ^~~~~~~~~ sunclock.c:5941:1: error: number of arguments doesn't match prototype 5941 | { | ^ sunclock.c:203:6: error: prototype declaration 203 | void doTimeout(); | ^~~~~~~~~ sunclock.c: In function 'doExpose': sunclock.c:5972:1: warning: old-style function definition [-Wold-style-definition] 5972 | doExpose(w) | ^~~~~~~~ sunclock.c:5980:26: error: too many arguments to function 'setupMenu'; expected 0, have 1 5980 | if (w == Menu) { setupMenu(-1); return; } | ^~~~~~~~~ ~~ sunclock.c:168:13: note: declared here 168 | extern void setupMenu(); | ^~~~~~~~~ sunclock.c:5981:29: error: too many arguments to function 'setupFilesel'; expected 0, have 1 5981 | if (w == Filesel) { setupFilesel(-1); return; } | ^~~~~~~~~~~~ ~~ sunclock.c:173:13: note: declared here 173 | extern void setupFilesel(); | ^~~~~~~~~~~~ sunclock.c:5982:26: error: too many arguments to function 'setupZoom'; expected 0, have 1 5982 | if (w == Zoom) { setupZoom(-1); return; } | ^~~~~~~~~ ~~ sunclock.c:181:13: note: declared here 181 | extern void setupZoom(); | ^~~~~~~~~ sunclock.c:5983:28: error: too many arguments to function 'setupOption'; expected 0, have 1 5983 | if (w == Option) { setupOption(-1); return; } | ^~~~~~~~~~~ ~~ sunclock.c:188:13: note: declared here 188 | extern void setupOption(); | ^~~~~~~~~~~ sunclock.c:5984:27: error: too many arguments to function 'setupUrban'; expected 0, have 1 5984 | if (w == Urban) { setupUrban(-1); return; } | ^~~~~~~~~~ ~~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c: In function 'evpred': sunclock.c:6012:1: warning: old-style function definition [-Wold-style-definition] 6012 | evpred(d, e, a) | ^~~~~~ sunclock.c: In function 'eventLoop': sunclock.c:6053:26: error: too many arguments to function 'setupOption'; expected 0, have 1 6053 | setupOption(0); | ^~~~~~~~~~~ ~ sunclock.c:188:13: note: declared here 188 | extern void setupOption(); | ^~~~~~~~~~~ sunclock.c:6058:26: error: too many arguments to function 'setupUrban'; expected 0, have 1 6058 | setupUrban(0); | ^~~~~~~~~~ ~ sunclock.c:195:13: note: declared here 195 | extern void setupUrban(); | ^~~~~~~~~~ sunclock.c:6070:23: error: too many arguments to function 'setAuxilWins'; expected 0, have 2 6070 | setAuxilWins(Context, DEICONIFY); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:200:13: note: declared here 200 | extern void setAuxilWins(); | ^~~~~~~~~~~~ sunclock.c:6082:23: error: too many arguments to function 'setAuxilWins'; expected 0, have 2 6082 | setAuxilWins(Context, ICONIFY); | ^~~~~~~~~~~~ ~~~~~~~ sunclock.c:200:13: note: declared here 200 | extern void setAuxilWins(); | ^~~~~~~~~~~~ sunclock.c:6095:60: error: too many arguments to function 'PopMenu'; expected 0, have 1 6095 | if (ev.xexpose.window == Menu) PopMenu(MenuCaller); | ^~~~~~~ ~~~~~~~~~~ sunclock.c:169:13: note: declared here 169 | extern void PopMenu(); | ^~~~~~~ sunclock.c:6098:35: error: too many arguments to function 'PopFilesel'; expected 0, have 1 6098 | PopFilesel(FileselCaller); | ^~~~~~~~~~ ~~~~~~~~~~~~~ sunclock.c:174:13: note: declared here 174 | extern void PopFilesel(); | ^~~~~~~~~~ sunclock.c:6100:60: error: too many arguments to function 'PopZoom'; expected 0, have 1 6100 | if (ev.xexpose.window == Zoom) PopZoom(ZoomCaller); | ^~~~~~~ ~~~~~~~~~~ sunclock.c:182:13: note: declared here 182 | extern void PopZoom(); | ^~~~~~~ sunclock.c:6103:45: error: too many arguments to function 'PopOption'; expected 0, have 1 6103 | PopOption(OptionCaller); | ^~~~~~~~~ ~~~~~~~~~~~~ sunclock.c:189:13: note: declared here 189 | extern void PopOption(); | ^~~~~~~~~ sunclock.c:6106:45: error: too many arguments to function 'PopUrban'; expected 0, have 1 6106 | PopUrban(UrbanCaller); | ^~~~~~~~ ~~~~~~~~~~~ sunclock.c:196:13: note: declared here 196 | extern void PopUrban(); | ^~~~~~~~ sunclock.c:6111:37: error: too many arguments to function 'shutDown'; expected 0, have 2 6111 | shutDown(Context, 1); | ^~~~~~~~ ~~~~~~~ sunclock.c:164:13: note: declared here 164 | extern void shutDown(); | ^~~~~~~~ sunclock.c:6157:21: error: too many arguments to function 'doTimeout'; expected 0, have 1 6157 | doTimeout(Context); | ^~~~~~~~~ ~~~~~~~ sunclock.c:5939:1: note: declared here 5939 | doTimeout(Context) | ^~~~~~~~~ sunclock.c: In function 'main': sunclock.c:6165:1: warning: old-style function definition [-Wold-style-definition] 6165 | main(argc, argv) | ^~~~ sunclock.c:6195:13: error: too many arguments to function 'readRC'; expected 0, have 2 6195 | if (readRC(app_default, 1)) exit(1); | ^~~~~~ ~~~~~~~~~~~ sunclock.c:1773:1: note: declared here 1773 | readRC(fname, verbosity) | ^~~~~~ sunclock.c:6204:18: error: too many arguments to function 'tildepath'; expected 0, have 1 6204 | if ((p = tildepath("~/.sunclockrc")) == NULL) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~ sunclock.c:150:14: note: declared here 150 | extern char *tildepath(); /* Returns path to ~/ */ | ^~~~~~~~~ sunclock.c:6209:29: error: too many arguments to function 'readRC'; expected 0, have 2 6209 | if (p && *p) (void) readRC(p, 0); | ^~~~~~ ~ sunclock.c:1773:1: note: declared here 1773 | readRC(fname, verbosity) | ^~~~~~ sunclock.c:6257:34: error: too many arguments to function 'salloc'; expected 0, have 1 6257 | city_spotsizes = (int *) salloc(city_cat * sizeof(int)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ sunclock.c:6258:35: error: too many arguments to function 'salloc'; expected 0, have 1 6258 | city_sizelimits = (int *) salloc(city_cat * sizeof(int)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ sunclock.c:141:17: note: declared here 141 | extern char * salloc(); | ^~~~~~ *** [sunclock.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/time/sunclock/work/sunclock-3.57 --- all --- *** [all] Error code 6 bmake: stopped making "all" in /home/pbulk/work/time/sunclock/work/sunclock-3.57 bmake: 3 errors bmake: stopped making "all" in /home/pbulk/work/time/sunclock/work/sunclock-3.57 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/sunclock *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/sunclock