Compile time warning: override-init
Posted: Thu Feb 19, 2015 7:44 pm
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,
^
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,
^