Macros | |
#define | NS_WARNING_POP |
Pops the diagnostic warning list from the stack, restoring it to the previous state. | |
#define | NS_WARNING_PUSH |
Push the diagnostic warning list to the stack, allowing it to be restored later. | |
#define | NS_WARNING_PUSH_DEPRECATED |
Save the current warning list and disables the ones about deprecated functions and classes. | |
#define | NS_WARNING_PUSH_MAYBE_UNINITIALIZED |
Save the current warning list and disables the ones about possible uninitialized variables. | |
#define | NS_WARNING_SILENCE_DEPRECATED |
Silences the "-Wdeprecated-declarations" warnings. | |
#define | NS_WARNING_SILENCE_MAYBE_UNINITIALIZED |
Silences GCC "-Wmaybe-uninitialized" warnings. | |
Macros useful to silence compiler warnings on selected code parts.
#define NS_WARNING_POP |
Pops the diagnostic warning list from the stack, restoring it to the previous state.
Definition at line 102 of file warnings.h.
Referenced by LiIonEnergyTestCase::DoRun(), ns3::tests::TypeTraitsTestCase::DoRun(), ns3::Ipv4::GetTypeId(), and PrintCellInfo().
#define NS_WARNING_PUSH |
Push the diagnostic warning list to the stack, allowing it to be restored later.
Definition at line 100 of file warnings.h.
#define NS_WARNING_PUSH_DEPRECATED |
Save the current warning list and disables the ones about deprecated functions and classes.
This macro can be used to silence deprecation warnings and should be used as a last resort to silence the compiler for very specific lines of code. The typical pattern is:
This macro is equivalent to
Its use is, of course, not suggested unless strictly necessary.
Definition at line 114 of file warnings.h.
Referenced by LiIonEnergyTestCase::DoRun(), ns3::tests::TypeTraitsTestCase::DoRun(), and ns3::Ipv4::GetTypeId().
#define NS_WARNING_PUSH_MAYBE_UNINITIALIZED |
Save the current warning list and disables the ones about possible uninitialized variables.
This macro is equivalent to
Definition at line 118 of file warnings.h.
#define NS_WARNING_SILENCE_DEPRECATED |
Silences the "-Wdeprecated-declarations" warnings.
Definition at line 101 of file warnings.h.
#define NS_WARNING_SILENCE_MAYBE_UNINITIALIZED |
Silences GCC "-Wmaybe-uninitialized" warnings.
Definition at line 111 of file warnings.h.