Hi,
I am having many warning compiling vm.c on a GCC compiler that comes with Ride7 IDE.
gcc version 4.8.4 20140725
I am not sure why this is happening, I noticed in vmentrytable.h that there is a pragma line, could it be that it is being ignored?
What's the impact of that warning?
Thanks.
micropython/py/vmentrytable.h:34:5: warning: initialized field overwritten [-Woverride-init]
[MP_BC_LOAD_CONST_FALSE] = &&entry_MP_BC_LOAD_CONST_FALSE,
^
micropython/py/vmentrytable.h:34:5: warning: (near initialization for 'entry_table[16]') [-Woverride-init]
micropython\micropython/py/vmentrytable.h:35:5: warning: initialized field overwritten [-Woverride-init]
[MP_BC_LOAD_CONST_NONE] = &&entry_MP_BC_LOAD_CONST_NONE,
^
Compile time warning: override-init
Re: Compile time warning: override-init
Yes every line has a warning. I just showed only a few lines in this post.
I am sure I am selecting some different compiler option, but I don't know which.
I can disable the GOTOS option but just wanted to understand the side effects of this warning.
I am sure I am selecting some different compiler option, but I don't know which.
I can disable the GOTOS option but just wanted to understand the side effects of this warning.
Re: Compile time warning: override-init
I am using: -std=gnu99
Here are the GCC options I am using:
-fomit-frame-pointer;-falign-functions=16;-ffunction-sections;-fdata-sections;-fno-common;-flto;-mfloat-abi=hard;-mfpu=fpv4-sp-d16;-fsingle-precision-constant;-Wall;-Wextra;-Wstrict-prototypes;-DCORTEX_USE_FPU=TRUE;-DTHUMB_PRESENT;-mno-thumb-interwork;-DTHUMB_NO_INTERWORKING;-DTHUMB;-std=gnu99 ;-Wdouble-promotion;-nostdlib;-mno-unaligned-access
Here are the GCC options I am using:
-fomit-frame-pointer;-falign-functions=16;-ffunction-sections;-fdata-sections;-fno-common;-flto;-mfloat-abi=hard;-mfpu=fpv4-sp-d16;-fsingle-precision-constant;-Wall;-Wextra;-Wstrict-prototypes;-DCORTEX_USE_FPU=TRUE;-DTHUMB_PRESENT;-mno-thumb-interwork;-DTHUMB_NO_INTERWORKING;-DTHUMB;-std=gnu99 ;-Wdouble-promotion;-nostdlib;-mno-unaligned-access
Re: Compile time warning: override-init
These warnings are fine and you can safely ignore them. But I still don't understand why your gcc compiler gives them in the first place...
Re: Compile time warning: override-init
The version I have is about 1 week old, and it compiles fine under Linux.
I will try to dig more and see.
I will try to dig more and see.