1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-30 10:45:40 +03:00
Files
glibc/misc
Adhemerval Zanella 6e862a07f7 misc: Fix clang -Wstring-plus-int warnings on syslog
clang issues:

syslog.c:193:9: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
  193 |                       SYSLOG_HEADER (pri, timestamp, &msgoff, pid));
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslog.c:180:7: note: expanded from macro 'SYSLOG_HEADER'
  180 |   "[" + (pid == 0), pid, "]" + (pid == 0)

Use array indexes instead of string addition (it is simpler than
add a supress warning).
2025-10-22 16:35:39 -03:00
..
2025-09-10 09:18:06 +00:00
2021-09-03 22:06:44 +05:30
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00