Project

General

Profile

Bug #854474

Sign-compare warning in log_parse_level_str()

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

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

./../../src/utility/log.c: In function ‘log_parse_level_str’:
../../../src/utility/log.c:128:37: error: comparison of integer expressions of different signedness: ‘int’ and ‘const enum log_level’ [-Werror=sign-compare]
128 | if (level >= LOG_FATAL && level <= max_level) { | ^~
../../../src/utility/log.c:160:38: error: comparison of integer expressions of different signedness: ‘int’ and ‘const enum log_level’ [-Werror=sign-compare]
160 | if (level < LOG_FATAL || level > max_level) { |


Related issues

Related to Freeciv - Feature #854090: str_to_uint()Closed

Related to Freeciv - Bug #855477: Setting per-file debug log level brokenClosed

History

#2 Updated by Marko Lindqvist 6 months ago

#3 Updated by Marko Lindqvist 6 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

#4 Updated by Marko Lindqvist 6 months ago

  • Related to Bug #855477: Setting per-file debug log level broken added

Also available in: Atom PDF