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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

3,132 次查看
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 项奖励
回复
3 回复数

1,413 次查看
anakha
Contributor III

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

0 项奖励
回复

3,007 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

pastedImage_3.png

0 项奖励
回复

3,007 次查看
pjzmj2012
Contributor I

in S32 Design Studio for ARM Version 2.2。

0 项奖励
回复