Menu

Pragma warning

Cyder

Pragma Warning

Config: TPP_CONFIG_HAVE_PRAGMA_WARNING
Check: #if __has_feature(tpp_pragma_warning) || __has_extension(tpp_pragma_warning)
Function: tpp.c: TPPLexer_ParsePragma
Known supporting compilers: vc

Configures the handling for a given warning id.
Note. Although TPP shares a syntax compatible with vc, its warning numbers are obviously different from it.

Syntax (>= v105): #pragma warning([[push/pop],]<Mode>: <ID> [<ID>...])
Syntax (< v105): #pragma warning([[push/pop],]<Mode>: <ID>)
Mode: disable, enable, error, default, <int>
ID: <int> Differes on warning in question. Whenever a warning is emitted, its number will be printed as well. For a full list of warning numbers, look at the TPPWarn_... macros in tpp.h

#pragma warning(push,disable:4)
#error IGNORED!
#pragma warning(pop)
#error Not Ignored!