Project

General

Profile

Actions

Bug #444

closed

c23 & constant operand warning about LOCALEDIR

Added by Marko Lindqvist 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
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 #1

Updated by Marko Lindqvist 7 months ago

Actions #2

Updated by Marko Lindqvist 7 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF