Actions
Bug #444
closedc23 & constant operand warning about LOCALEDIR
Start date:
04/12/2024
Due date:
% Done:
0%
Estimated time:
Description
c23 build on void linux:
../../../src/utility/fcintl.c:124:29: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
124 | if (LOCALEDIR0 != '/' && LOCALEDIR0 != '\\') {
| ^ ~~~~~~~~~~~~~~~~~~
../../../src/utility/fcintl.c:124:29: note: use '&' for a bitwise operation
124 | if (LOCALEDIR0 != '/' && LOCALEDIR0 != '\\') {
| ^~
| &
../../../src/utility/fcintl.c:124:29: note: remove constant to silence this warning
124 | if (LOCALEDIR0 != '/' && LOCALEDIR0 != '\\') {
| ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Files
Actions