**Compiling realtime litexcnc.c
litexcnc.c: In function ‘litexcnc_register’:
litexcnc.c:250:9: warning: format not a string literal and no format arguments [-Wformat-security]
250 | rtapi_snprintf(fpga->name, sizeof(fpga->name), json_object_get_string(board_name));
| ^~~~~~~~~~~~~~
In file included from litexcnc.c:33:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:322:5: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
322 | LITEXCNC_PRINT_NO_DEVICE(" - Write buffer: %d bytes)\n", LITEXCNC_BOARD_DATA_WRITE_SIZE(litexcnc));
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:332:5: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
332 | LITEXCNC_PRINT_NO_DEVICE(" - Read buffer: %d bytes)\n", LITEXCNC_BOARD_DATA_READ_SIZE(litexcnc));
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:50:81: note: in expansion of macro ‘LITEXCNC_NAME’
50 | (fmt, device, args...) rtapi_print_msg(RTAPI_MSG_ERR, LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:359:9: note: in expansion of macro ‘LITEXCNC_ERR’
359 | LITEXCNC_ERR("error %d exporting read function %s\n", r, name);
| ^~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘char *’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:50:81: note: in expansion of macro ‘LITEXCNC_NAME’
50 | (fmt, device, args...) rtapi_print_msg(RTAPI_MSG_ERR, LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:359:9: note: in expansion of macro ‘LITEXCNC_ERR’
359 | LITEXCNC_ERR("error %d exporting read function %s\n", r, name);
| ^~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:50:81: note: in expansion of macro ‘LITEXCNC_NAME’
50 | (fmt, device, args...) rtapi_print_msg(RTAPI_MSG_ERR, LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:359:9: note: in expansion of macro ‘LITEXCNC_ERR’
359 | LITEXCNC_ERR("error %d exporting read function %s\n", r, name);
| ^~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:50:81: note: in expansion of macro ‘LITEXCNC_NAME’
50 | (fmt, device, args...) rtapi_print_msg(RTAPI_MSG_ERR, LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:367:9: note: in expansion of macro ‘LITEXCNC_ERR’
367 | LITEXCNC_ERR("error %d exporting read function %s\n", r, name);
| ^~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘char *’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:50:81: note: in expansion of macro ‘LITEXCNC_NAME’
50 | (fmt, device, args...) rtapi_print_msg(RTAPI_MSG_ERR, LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:367:9: note: in expansion of macro ‘LITEXCNC_ERR’
367 | LITEXCNC_ERR("error %d exporting read function %s\n", r, name);
| ^~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:50:81: note: in expansion of macro ‘LITEXCNC_NAME’
50 | (fmt, device, args...) rtapi_print_msg(RTAPI_MSG_ERR, LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
litexcnc.c:367:9: note: in expansion of macro ‘LITEXCNC_ERR’
367 | LITEXCNC_ERR("error %d exporting read function %s\n", r, name);
| ^~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/watchdog.c: In function ‘litexcnc_watchdog_prepare_write’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘hal_u32_t’ {aka ‘unsigned int’} [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:49:61: note: in expansion of macro ‘LITEXCNC_NAME’
49 | #define LITEXCNC_PRINT(fmt, device, args...) rtapi_print(LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/watchdog.c:113:13: note: in expansion of macro ‘LITEXCNC_PRINT’
113 | LITEXCNC_PRINT(
| ^~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long int’ [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:49:61: note: in expansion of macro ‘LITEXCNC_NAME’
49 | #define LITEXCNC_PRINT(fmt, device, args...) rtapi_print(LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/watchdog.c:113:13: note: in expansion of macro ‘LITEXCNC_PRINT’
113 | LITEXCNC_PRINT(
| ^~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%ld’ expects a matching ‘long int’ argument [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:49:61: note: in expansion of macro ‘LITEXCNC_NAME’
49 | #define LITEXCNC_PRINT(fmt, device, args...) rtapi_print(LITEXCNC_NAME "/%s: " fmt, device, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/watchdog.c:113:13: note: in expansion of macro ‘LITEXCNC_PRINT’
113 | LITEXCNC_PRINT(
| ^~~~~~~~~~~~~~
In file included from litexcnc.c:423:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/gpio.c: In function ‘litexcnc_gpio_out_init’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/gpio.c:37:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
37 | rtapi_snprintf(name, sizeof(name), "%s.gpio.%02d.out", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/gpio.c:48:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
48 | rtapi_snprintf(name, sizeof(name), "%s.gpio.%02d.invert_output", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/gpio.c: In function ‘litexcnc_gpio_in_init’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/gpio.c:92:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
92 | rtapi_snprintf(name, sizeof(name), "%s.gpio.%02d.in", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/gpio.c:93:82: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
93 | _snprintf(name_inverted, sizeof(name_inverted), "%s.gpio.%02d.in-not", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
In file included from litexcnc.c:424:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/pwm.c: In function ‘litexcnc_pwm_init’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/pwm.c:80:73: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
80 | rtapi_snprintf(base_name, sizeof(base_name), "%s.pwm.%02d", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
In file included from litexcnc.c:425:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c: In function ‘litexcnc_stepgen_init’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:95:77: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
95 | rtapi_snprintf(base_name, sizeof(base_name), "%s.stepgen.%02d", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
In file included from litexcnc.c:33:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c: In function ‘litexcnc_stepgen_prepare_write’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:359:13: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
359 | LITEXCNC_PRINT_NO_DEVICE("Stepgen: data sent to FPGA %llu, %llu, %lu, %lu, %lu \n",
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:359:13: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
359 | LITEXCNC_PRINT_NO_DEVICE("Stepgen: data sent to FPGA %llu, %llu, %lu, %lu, %lu \n",
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:359:13: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
359 | LITEXCNC_PRINT_NO_DEVICE("Stepgen: data sent to FPGA %llu, %llu, %lu, %lu, %lu \n",
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:359:13: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
359 | LITEXCNC_PRINT_NO_DEVICE("Stepgen: data sent to FPGA %llu, %llu, %lu, %lu, %lu \n",
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:33:26: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
33 | #define LITEXCNC_NAME "litexcnc"
| ^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/litexcnc.h:43:61: note: in expansion of macro ‘LITEXCNC_NAME’
43 | #define LITEXCNC_PRINT_NO_DEVICE(fmt, args...) rtapi_print(LITEXCNC_NAME ": " fmt, ## args)
| ^~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:359:13: note: in expansion of macro ‘LITEXCNC_PRINT_NO_DEVICE’
359 | LITEXCNC_PRINT_NO_DEVICE("Stepgen: data sent to FPGA %llu, %llu, %lu, %lu, %lu \n",
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from litexcnc.c:425:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c: In function ‘litexcnc_stepgen_process_read’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:428:66: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
428 | rtapi_print("Apply time exceeding limits (too short): %llu, %llu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
429 | litexcnc->wallclock->memo.wallclock_ticks,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:428:72: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
428 | pi_print("Apply time exceeding limits (too short): %llu, %llu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
429 | litexcnc->wallclock->memo.wallclock_ticks,
430 | litexcnc->stepgen.memo.apply_time,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:428:78: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
428 | i_print("Apply time exceeding limits (too short): %llu, %llu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
......
431 | next_apply_time
| ~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:434:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
434 | rtapi_print("%llu \n", next_apply_time);
| ~~~^ ~~~~~~~~~~~~~~~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %lu
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:442:65: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
442 | rtapi_print("Apply time exceeding limits (too long): %llu, %llu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
443 | litexcnc->wallclock->memo.wallclock_ticks,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:442:71: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
442 | api_print("Apply time exceeding limits (too long): %llu, %llu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
443 | litexcnc->wallclock->memo.wallclock_ticks,
444 | litexcnc->stepgen.memo.apply_time,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:442:77: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
442 | pi_print("Apply time exceeding limits (too long): %llu, %llu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
......
445 | next_apply_time
| ~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:528:44: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
528 | rtapi_print("Timings: %.6f, %llu, %llu, %lu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
529 | *(litexcnc->stepgen.hal->pin.period_s),
530 | litexcnc->wallclock->memo.wallclock_ticks,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:528:50: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
528 | rtapi_print("Timings: %.6f, %llu, %llu, %lu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
......
531 | litexcnc->stepgen.memo.apply_time,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:528:55: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
528 | rtapi_print("Timings: %.6f, %llu, %llu, %lu, %llu \n",
| ~~^
| |
| long unsigned int
| %u
......
532 | instance->data.fpga_time,
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:528:61: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
528 | rtapi_print("Timings: %.6f, %llu, %llu, %lu, %llu \n",
| ~~~^
| |
| long long unsigned int
| %lu
......
533 | next_apply_time
| ~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:560:60: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
560 | rtapi_print("Stepgen speed feedback result: %llu, %llu, %.6f, %.6f, %.6f, %.6f \n",
| ~~~^
| |
| long long unsigned int
| %lu
561 | litexcnc->wallclock->memo.wallclock_ticks,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/stepgen.c:560:66: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
560 | rtapi_print("Stepgen speed feedback result: %llu, %llu, %.6f, %.6f, %.6f, %.6f \n",
| ~~~^
| |
| long long unsigned int
| %lu
561 | litexcnc->wallclock->memo.wallclock_ticks,
562 | next_apply_time,
| ~~~~~~~~~~~~~~~
| |
| uint64_t {aka long unsigned int}
In file included from litexcnc.c:426:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/encoder.c: In function ‘litexcnc_encoder_init’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/encoder.c:74:77: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
74 | rtapi_snprintf(base_name, sizeof(base_name), "%s.encoder.%02d", litexcnc->fpga->name, i);
| ~~~^ ~
| | |
| int size_t {aka long unsigned int}
| %02ld
litexcnc.c: In function ‘litexcnc_register’:
litexcnc.c:199:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
199 | fread(buffer, filelen, 1, fileptr); // Read in the entire file
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Linking litexcnc.so
cp litexcnc.so /usr/lib/linuxcnc/modules/
Compiling realtime litexcnc_eth.c
litexcnc_eth.c: In function ‘litexcnc_eth_read’:
litexcnc_eth.c:251:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
251 | fprintf(stderr, "Unexpected read length: %d, expected %d\n", count, this->read_buffer_size);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| int size_t {aka long unsigned int}
| %ld
litexcnc_eth.c: In function ‘init_board’:
litexcnc_eth.c:323:100: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘struct json_object *’ [-Wformat=]
323 | colorcnc: ERROR: failed to connect to board on ip-address '%s'\n", ip_address);
| ~^ ~~~~~~~~~~
| | |
| char * struct json_object *
In file included from litexcnc_eth.c:449:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/etherbone.c: In function ‘eb_read8’:
/usr/local/lib/python3.10/dist-packages/litexcnc/driver/etherbone.c:153:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
153 | fprintf(stderr, "Unexpected read length: %d, expected %d\n", count, (16+size));
| ~^ ~~~~~~~~~
| | |
| int size_t {aka long unsigned int}
| %ld
Linking litexcnc_eth.so
cp litexcnc_eth.so /usr/lib/linuxcnc/modules/
Compiling realtime litexcnc_debug.c
Linking litexcnc_debug.so
cp litexcnc_debug.so /usr/lib/linuxcnc/modules/
Compiling realtime pos2vel.c
pos2vel.c: In function ‘rtapi_app_main’:
pos2vel.c:161:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
161 | rtapi_print_msg(RTAPI_MSG_INFO, "PID: installed %d pos2vel converters\n", pos2vel->data.num_instances);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int size_t {aka long unsigned int}
| %ld**