code composer studio warning: nonstandard type for a bit field

Ich bekomme unter Code Composer folgende Warnung:

warning: nonstandard type for a bit field

Dieses Problem bezieht sich auf ein struct mit "bit-field" Zuweisung.

Beispiel:

struct ADE7758_PHASE_A { int16 AWATTHR:16; // 0x01 AWATTHR int16 AVARHR:16; // 0x04 AVARHR Uint16 AVAHR_uint; // 0x07 AVAHR

-> Uint32 AIRMS_24bit:24; // 0x0A AIRMS Uint32 AVRMS_24bit; // 0x0D AVRMS int16 AVRMSGAIN:12; // 0x24 AVRMSGAIN int16 AIGAIN:12; // 0x27 AIGAIN int16 AWG:12; // 0x2A AWG int16 AVARG:12; // 0x2D AVARG int16 AVAG:12; // 0x30 AVAG int16 AVRMSOS:12; // 0x33 AVRMSOS int16 AIRMSOS:12; // 0x36 AIRMSOS int16 AWATTOS:12; // 0x39 AWATTOS int16 AVAROS:12; // 0x3C AVAROS int16 APHCAL:7; // 0x3F APHCAL };

Der Compiler m=F6chte nicht eine "bit-field" Zuweisung f=FCr int32 und uint32 Variablen kompilieren. Da es nur eine Warnung ist, funktioniet letztendlich alles wie es soll. Gibt es daf=FCr eine L=F6sung oder ist es au=DFerhalb einer Norm? Die Warnungen nerven sehr und lenken nur von eigentlichen Fehlern ab. Die es nat=FCrlich nicht gibt ;)

Gru=DF, Tim Rettmann

Reply to
mugen
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.