Project

General

Profile

Actions

Bug #2767

closed

NFD_LOG_INIT can cause unused variable warning

Added by Junxiao Shi about 9 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

When NFD_LOG_INIT declares a logger instance, if the module isn't using the logger (yet), some compiler may detect the logger instance as an unused variable and generate warning.

__attribute__((__unused__)) should be applied to the declaration to suppress such warning.

Actions

Also available in: Atom PDF