Got these warnings when making on OS X El Capitan (10.11.6):
make
cc -c -Wall sunwait.cpp -o sunwait.o
sunwait.cpp:431:60: warning: expression result unused [-Wunused-value]
if (arg[0]=='-' && arg[1] != '\0' && !isdigit(arg[1])) *arg++;
^~~~~~
sunwait.cpp:530:52: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if (gTarget.year < 100 && gTarget.year >= 0) gTarget.year += 2000;
~~~~~~~~~~~~ ^ ~
2 warnings generated.
cc -c -Wall sunriset.cpp -o sunriset.o
cc -c -Wall print.cpp -o print.o
cc -lm -lstdc++ sunwait.o sunriset.o print.o -o sunwait
>>> elapsed time 19s
At any rate, it seems to run fine. To get your current location on macOS, you can use the CoreLocationCLI.
Got these warnings when making on OS X El Capitan (10.11.6):
At any rate, it seems to run fine. To get your current location on macOS, you can use the CoreLocationCLI.