20 Nov
2023
20 Nov
'23
7:34 p.m.
The following compiler warning could be silenced with the patch below. | ./post.c:5071:16: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] | ./post.c:5071:16: note: use '&' for a bitwise operation | ./post.c:5071:16: note: remove constant to silence this warning Dennis --- a/src/post.c +++ b/src/post.c @@ -5068,7 +5068,7 @@ checknadd_headers( } #endif /* HAVE_SYS_UTSNAME_H && HAVE_UNAME */ #ifdef SYSTEM_NAME - if (!*suffix && strlen(SYSTEM_NAME)) + if (!*suffix && strlen(SYSTEM_NAME) > 0) snprintf(suffix, sizeof(suffix), "(%s)", SYSTEM_NAME); #endif /* SYSTEM_NAME */
1110
Age (days ago)
1110
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dennis Preiser