LPUART GCC extension warning

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPUART GCC extension warning

Jump to solution
286 Views
akhilranga
Contributor IV

Hi there,

Can some one please help me understand the reason for this warning. I am attaching the image below. 

LPUART GCC extension warning. I am using the same file in different code with out any such warning. I wanted to understand the reason for this warning. So any insights would be helpful . Thank you

Screenshot (240).png

0 Kudos
1 Solution
260 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @akhilranga,

C supports only int, unsigned int, and _Bool as types for bit-fields. Other types are implementation defined.

Using the flag -Wpedantic the compiler will follow the standard strictly and will try to warn you if you use certain implementation-defined features or extensions, it warns for some uses of language extensions that the compiler otherwise considers normal but that can make the program non-portable to other compilers. This code may not compile with another compiler.

You can disable this flag by going to "Properties > C/C++ Build > Settings > Standard S32DS C Compiler > Warnings". 

Julin_AragnM_0-1712252160623.png

Best regards,
Julián

View solution in original post

0 Kudos
1 Reply
261 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @akhilranga,

C supports only int, unsigned int, and _Bool as types for bit-fields. Other types are implementation defined.

Using the flag -Wpedantic the compiler will follow the standard strictly and will try to warn you if you use certain implementation-defined features or extensions, it warns for some uses of language extensions that the compiler otherwise considers normal but that can make the program non-portable to other compilers. This code may not compile with another compiler.

You can disable this flag by going to "Properties > C/C++ Build > Settings > Standard S32DS C Compiler > Warnings". 

Julin_AragnM_0-1712252160623.png

Best regards,
Julián

0 Kudos