How to disable "warning: binary constants are a GCC extension" ?S32 SDK

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

How to disable "warning: binary constants are a GCC extension" ?S32 SDK

2,263 Views
pjzmj2012
Contributor I

How to disable "warning: binary constants are a GCC extension" ?

SCG->RCCR=SCG_RCCR_SCS(6) /* Select PLL as clock source */
|SCG_RCCR_DIVCORE(0b01) /* DIVCORE=1, div. by 2: Core clock = 160/2 MHz = 80 MHz */
|SCG_RCCR_DIVBUS(0b01) /* DIVBUS=1, div. by 2: bus clock = 40 MHz */
|SCG_RCCR_DIVSLOW(0b10); /* DIVSLOW=2, div. by 2: SCG slow, flash clock= 26 2/3 MHz */

0 Kudos
3 Replies

544 Views
erinc
Contributor III

So, what other things will I miss with disabling this warning?

0 Kudos

2,138 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, it should be enough to remove -pedantic option. Or you can just ignore it.

pastedImage_3.png

0 Kudos

2,138 Views
pjzmj2012
Contributor I

in S32 Design Studio for ARM Version 2.2。

0 Kudos