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
Updated by Marko Lindqvist 8 months ago
- File 0056-get_locale_dir-Work-around-constant-operand-warning.patch 0056-get_locale_dir-Work-around-constant-operand-warning.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
Actions