Skip to content
Snippets Groups Projects
Commit 8b58ecdd authored by mio's avatar mio
Browse files

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

Fix -Wincompatible-pointer-types error with gcc 14 on 32-bit arches.

```
telepathy-logger.c: In function 'log_handler':
telepathy-logger.c:70:20: error: passing argument 1 of 'localtime_r' from incompatible pointer type [-Wincompatible-pointer-types]
   70 |       localtime_r (&(now.tv_sec), &tm);
      |                    ^~~~~~~~~~~~~
      |                    |
      |                    glong * {aka long int *}
In file included from /usr/include/glib-2.0/glib/gtypes.h:41,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from telepathy-logger.c:23:
/usr/include/time.h:76:25: note: expected 'const time_t * restrict' {aka 'const long long int * restrict'} but argument is of type 'glong *' {aka 'long int *'}
   76 | struct tm *localtime_r (const time_t *__restrict, struct tm *__restrict);
      |                         ^
```
parent 7a49cffa
No related branches found
No related tags found
1 merge request!75624community/telepathy-logger: fix build with gcc 14 on 32-bit arches
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment