linux-can / can-utils

Linux-CAN / SocketCAN user space applications
2.37k stars 708 forks source link

isobusfs_cmn: Werror=format #541

Closed marckleinebudde closed 4 months ago

marckleinebudde commented 4 months ago
/home/isobusfs/isobusfs_cmn.c: In function 'isobusfs_print_timestamp':
/home/isobusfs/isobusfs_cmn.c:261:34: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type '__time64_t' {aka 'long long int'} [-Werror=format=]
  261 |         fprintf(stderr, "  %s: %lu s %lu us (seq=%u/%u, send=%u)",
      |                                ~~^
      |                                  |
      |                                  long unsigned int
      |                                %llu
  262 |                         name, cur->tv_sec, cur->tv_nsec / 1000,
      |                               ~~~~~~~~~~~
      |                                  |
      |                                  __time64_t {aka long long int}
cc1: all warnings being treated as errors
marckleinebudde commented 4 months ago

Feel free to use the automated build test from: https://github.com/marckleinebudde/can-utils/tree/buildsystems-cleanup