Le 17/09/2010 16:54, Wolfgang Denk a écrit : > Dear Albert ARIBAUD, > > In message<4c936823.1060...@free.fr> you wrote: >> >>> init_fnc_t *init_sequence[] = { >> >> init_sequence is a constant, not an initialized variable, and thus >> should have the 'const' qualifier. > > Actually it _is_ an initialized variable (which still may take a > const).
Maybe we're having a terminology discrepancy here. For me an initialized variable is a *variable*, i.e. intended to *vary* over execution time, and which is initialized, i.e. set to a known initial value; whereas a const has a value which does not vary over execution time, and thus a const is not a variable. In that sense, and as init_sequence does not, and should not, vary over execution time, it is not a variable. > Best regards, > > Wolfgang Denk Amicalement, -- Albert. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot