Skip to content

community/calcurse: fix build with gcc 14 on 32-bit arches

mio requested to merge mio/aports:calcurse into master

Fix -Wincompatible-pointer-types error with gcc 14 on 32-bit arches. Found on the 3.21 armhf/armv7 builders (error log).

day.c: In function 'day_paste_item':
day.c:870:25: error: passing argument 3 of 'overflow_add' from incompatible pointer type [-Wincompatible-pointer-types]
  870 |                         &until)
      |                         ^~~~~~
      |                         |
      |                         time_t * {aka long long int *}
In file included from day.c:43:
calcurse.h:1275:31: note: expected 'long int *' but argument is of type 'time_t *' {aka 'long long int *'}
 1275 | long overflow_add(long, long, long *);
      |                               ^~~~~~

Merge request reports

Loading