Avoid duplicate const specifier compiler warnings
The original code is perfectly valid standard C. However, some compilers (especially GCC) complain about duplicate const specifiers anyway. At this point we cave in as there doesn't seem to be any efforts to fix this problem by the corresponding compiler vendors. uGFX v3 will no longer suffer from this problem as the driver interface works differently in this area.
This commit is contained in:
parent
0dac6b4d0f
commit
0a55fc94bd
@ -569,9 +569,9 @@ void _gdispInit(void)
|
|||||||
#if defined(GDISP_DRIVER_LIST)
|
#if defined(GDISP_DRIVER_LIST)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
typedef const GDISPVMT const GDISPVMTLIST[1];
|
typedef const GDISPVMT GDISPVMTLIST[1];
|
||||||
|
|
||||||
static const GDISPVMT * const dclist[] = {GDISP_DRIVER_LIST};
|
static const GDISPVMT* dclist[] = { GDISP_DRIVER_LIST };
|
||||||
|
|
||||||
for(i = 0; i < sizeof(dclist)/sizeof(dclist[0]); i++) {
|
for(i = 0; i < sizeof(dclist)/sizeof(dclist[0]); i++) {
|
||||||
if (!(dclist[i]->d.flags & GDISP_VFLG_DYNAMICONLY))
|
if (!(dclist[i]->d.flags & GDISP_VFLG_DYNAMICONLY))
|
||||||
|
Loading…
Reference in New Issue
Block a user