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
解決済! 解決策の投稿を見る。
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".
Best regards,
Julián
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".
Best regards,
Julián