SUNphi  1.0
Unused.hpp File Reference

Header file to suppress "Unused Variable" warning. More...

Go to the source code of this file.

Macros

#define MAYBE_UNUSED(A)
 Suppress the "Unused Variable" warning at any scope. More...
 

Functions

template<typename T >
void maybeUnused (const T &)
 

Detailed Description

Header file to suppress "Unused Variable" warning.

Definition in file Unused.hpp.

Macro Definition Documentation

#define MAYBE_UNUSED (   A)
Value:
\ \
Conditional<0,decltype(maybeUnused(A)),void> maybeUnusedFD()
Conditional< 0, decltype(maybeUnused(NCOMPL)), void > maybeUnusedFD()

Suppress the "Unused Variable" warning at any scope.

Definition at line 23 of file Unused.hpp.

Function Documentation

template<typename T >
void maybeUnused ( const T &  )
inline

Dummy function to be called to suppress "Unused Variable" warning

Example:

1 const int a=10;
2 maybeUnused(a);

Definition at line 18 of file Unused.hpp.