const declarator in C

Clayton Cramer cramer at optilink.UUCP
Sat Aug 11 09:40:03 AEST 1990


I've just started to use the "const" keyword in Microsoft C, and 
I'm a little mystified by something.

    const char* HdrList[] = {"DS1 Cross-Connections"};

    typedef struct ListTag
        {
        const char **pHeader;
        ...
        } tList;

    const tList DS1CrossConnList = {HdrList, ...

gives:

    warning C4090: different 'const/volatile' qualifiers

Any idea why it's complaining?
-- 
Clayton E. Cramer {pyramid,pixar,tekbspa}!optilink!cramer
"Our Constitution is color-blind.  The arbitrary separation of citizens,
on the basis of race... is a badge of servitude wholly inconsistent with
civil freedom." -- Justice John Marshall Harlan (1896)



More information about the Comp.lang.c mailing list