make
cc -O3 -ffast-math -mcpu=native -Wall -Wextra -std=c99 -DDS4_NO_METAL -c -o ds4_cli.o ds4_cli.c
cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
ds4_cli.c: In function ‘cli_now_sec’:
ds4_cli.c:247:21: error: storage size of ‘ts’ isn’t known
247 | struct timespec ts;
| ^~
ds4_cli.c:248:5: warning: implicit declaration of function ‘clock_gettime’ [-Wimplicit-function-declaration]
248 | clock_gettime(CLOCK_MONOTONIC, &ts);
| ^~~~~~~~~~~~~
ds4_cli.c:248:19: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
248 | clock_gettime(CLOCK_MONOTONIC, &ts);
| ^~~~~~~~~~~~~~~
ds4_cli.c:248:19: note: each undeclared identifier is reported only once for each function it appears in
ds4_cli.c:247:21: warning: unused variable ‘ts’ [-Wunused-variable]
247 | struct timespec ts;
| ^~
ds4_cli.c: In function ‘run_sampled_generation’:
ds4_cli.c:445:29: warning: implicit declaration of function ‘fileno’ [-Wimplicit-function-declaration]
445 | .use_color = isatty(fileno(stdout)) != 0,
| ^~~~~~
ds4_cli.c: In function ‘run_repl’:
ds4_cli.c:1008:22: error: storage size of ‘old_int’ isn’t known
1008 | struct sigaction old_int;
| ^~~~~~~
ds4_cli.c:1009:22: error: storage size of ‘sa’ isn’t known
1009 | struct sigaction sa;
| ^~
ds4_cli.c:1011:5: warning: implicit declaration of function ‘sigemptyset’ [-Wimplicit-function-declaration]
1011 | sigemptyset(&sa.sa_mask);
| ^~~~~~~~~~~
ds4_cli.c:1013:29: warning: implicit declaration of function ‘sigaction’ [-Wimplicit-function-declaration]
1013 | bool sigint_installed = sigaction(SIGINT, &sa, &old_int) == 0;
| ^~~~~~~~~
ds4_cli.c:1016:15: error: ‘PATH_MAX’ undeclared (first use in this function)
1016 | char hist[PATH_MAX];
| ^~~~~~~~
ds4_cli.c:1016:10: warning: unused variable ‘hist’ [-Wunused-variable]
1016 | char hist[PATH_MAX];
| ^~~~
ds4_cli.c:1009:22: warning: unused variable ‘sa’ [-Wunused-variable]
1009 | struct sigaction sa;
| ^~
ds4_cli.c:1008:22: warning: unused variable ‘old_int’ [-Wunused-variable]
1008 | struct sigaction old_int;
| ^~~~~~~
ds4_cli.c: In function ‘cli_now_sec’:
ds4_cli.c:250:1: warning: control reaches end of non-void function [-Wreturn-type]
250 | }
| ^
make: *** [Makefile:49: ds4_cli.o] Error 1
make
cc -O3 -ffast-math -mcpu=native -Wall -Wextra -std=c99 -DDS4_NO_METAL -c -o ds4_cli.o ds4_cli.c
cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
ds4_cli.c: In function ‘cli_now_sec’:
ds4_cli.c:247:21: error: storage size of ‘ts’ isn’t known
247 | struct timespec ts;
| ^~
ds4_cli.c:248:5: warning: implicit declaration of function ‘clock_gettime’ [-Wimplicit-function-declaration]
248 | clock_gettime(CLOCK_MONOTONIC, &ts);
| ^~~~~~~~~~~~~
ds4_cli.c:248:19: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
248 | clock_gettime(CLOCK_MONOTONIC, &ts);
| ^~~~~~~~~~~~~~~
ds4_cli.c:248:19: note: each undeclared identifier is reported only once for each function it appears in
ds4_cli.c:247:21: warning: unused variable ‘ts’ [-Wunused-variable]
247 | struct timespec ts;
| ^~
ds4_cli.c: In function ‘run_sampled_generation’:
ds4_cli.c:445:29: warning: implicit declaration of function ‘fileno’ [-Wimplicit-function-declaration]
445 | .use_color = isatty(fileno(stdout)) != 0,
| ^~~~~~
ds4_cli.c: In function ‘run_repl’:
ds4_cli.c:1008:22: error: storage size of ‘old_int’ isn’t known
1008 | struct sigaction old_int;
| ^~~~~~~
ds4_cli.c:1009:22: error: storage size of ‘sa’ isn’t known
1009 | struct sigaction sa;
| ^~
ds4_cli.c:1011:5: warning: implicit declaration of function ‘sigemptyset’ [-Wimplicit-function-declaration]
1011 | sigemptyset(&sa.sa_mask);
| ^~~~~~~~~~~
ds4_cli.c:1013:29: warning: implicit declaration of function ‘sigaction’ [-Wimplicit-function-declaration]
1013 | bool sigint_installed = sigaction(SIGINT, &sa, &old_int) == 0;
| ^~~~~~~~~
ds4_cli.c:1016:15: error: ‘PATH_MAX’ undeclared (first use in this function)
1016 | char hist[PATH_MAX];
| ^~~~~~~~
ds4_cli.c:1016:10: warning: unused variable ‘hist’ [-Wunused-variable]
1016 | char hist[PATH_MAX];
| ^~~~
ds4_cli.c:1009:22: warning: unused variable ‘sa’ [-Wunused-variable]
1009 | struct sigaction sa;
| ^~
ds4_cli.c:1008:22: warning: unused variable ‘old_int’ [-Wunused-variable]
1008 | struct sigaction old_int;
| ^~~~~~~
ds4_cli.c: In function ‘cli_now_sec’:
ds4_cli.c:250:1: warning: control reaches end of non-void function [-Wreturn-type]
250 | }
| ^
make: *** [Makefile:49: ds4_cli.o] Error 1