"Partially elided initialisation" on initialising 2-D array



Running lint on code initialising a local 2-D array gives a warning.

void f(void)
{
int a[5][3] = { 0 };
...

lint gives "warning: Partially elided initialisation..."

Should this be happening, and what does it mean (the warning does not
occur for 1-D array)?

[Running "lint -std1 -u -x a.c" on Tru64 platform]

TIA
Mark

.



Relevant Pages

  • Re: fgets() - supposed to be simple :)
    ... shouldn't) use the macro with a semicolon. ... And you need an array of 100 floats for the amount of the purchase? ... >void menu; ... This is an error, not a warning. ...
    (comp.lang.c)
  • Re: Array of Pointers
    ... complex) data structure than a simple array to do this efficiently. ... int mainor int main ... bigarray.c:6: warning: ISO C89 forbids variable-size array `arrayofpointers' ...
    (comp.lang.c)
  • Re: Are constants not locally static?
    ... array length of the value it's allowed (but not compliant, ... yada yada ... ... So onto the code that caused the warning. ... The package is ...
    (comp.lang.vhdl)
  • Re: HELP! Trying to add Email Notification to Download File Code
    ... This warning will go away once you get the headers sorted out. ... Invalid argument supplied for foreachin ... # verifies if the $filelist array has an element ... # builds an array with all valid files in the ...
    (comp.lang.php)
  • Re: Stack growth direction to thwart buffer overflow attacks
    ... > via SIGABRT or whatever when the buffer is exceeded, ... the MS compiler has an extension that lets you mark ... can insist that the warning count falls over time. ... For the wider problem of running off the ends of an array, ...
    (comp.security.misc)