| Electronic Components Datasheet Search |
|
AN3350 Datasheet(PDF) 144 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 Datasheet(HTML) 144 Page - STMicroelectronics |
|
144 / 185 page ![]() Pragmas for diagnostic messages AN3350 144/185 Doc ID 018512 Rev 2 Syntax #pragma warn_any_ptr_int_conv on | off | reset Remarks This pragma is useful to identify potential 64-bit pointer portability issues. An example is shown in Example 89. Example 89 Example of warn_any_ptr_int_conv #pragma warn_ptr_int_conv on short i, *ip void func() { i = (short)ip; /* WARNING: short type is not large enough to hold pointer. */ } #pragma warn_any_ptr_int_conv on void bar() { i = (int)ip; /* WARNING: pointer to integral conversion. */ ip = (short *)i; /* WARNING: integral to pointer conversion. */ } Remarks By default, this pragma is off. 19.12 warn_emptydecl Controls the recognition of declarations without variables. Syntax #pragma warn_emptydecl on | off | reset Remarks If you enable this pragma, the compiler displays a warning message when it encounters a declaration with no variables. Example 90 Examples of empty declarations in C and C++ #pragma warn_emptydecl on int ; /* WARNING: empty variable declaration. */ int i; /* OK */ long j;; /* WARNING */ long j; /* OK */ |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |