TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

SR:  12.8#1Checked automatically with code checker

Synopsis:The #pragma directive shall not be used without sign-off according to local quality procedures.
Language:C
Severity Level:4
Category:PREPROCESSING


Description:
The behaviour of #pragma is entirely implementation defined and non-portable. Such directives are usually provided by compiler writers who have either provided lots of extensions or lots of command-line options and feel that users want to be able to switch these options on and off throughout the source. Taking advantage of this “generosity” will produce wildly non-portable code.