NN_UNUSED_VAR

NN_UNUSED_VAR Macro

Syntax

#include <nn/config.h>

#define NN_UNUSED_VAR(var) ((void)&var);

Arguments

Name Description
in var The target variable.

Description

Declares that a variable is not used.

Variables declared in code but not accessed do not result in unused variable compiler warnings by declaring them as unused.

Such variables are primarily used as temporary function parameters.

Revision History

2011/12/16
Initial version.

CONFIDENTIAL