Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #854474

Sign-compare warning in log_parse_level_str()

Added by Marko Lindqvist about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
General
Sprint/Milestone:
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

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to Freeciv - Bug #855477: Setting per-file debug log level brokenClosed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#2 Updated by Marko Lindqvist about 1 year ago

#3 Updated by Marko Lindqvist about 1 year ago

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

#4 Updated by Marko Lindqvist about 1 year ago

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

Also available in: Atom PDF