[ 39%] Building CXX object
goldlib/gcfg/CMakeFiles/gcfg.dir/gxmax3.cpp.o In file included from ~/Projects/golded-plus-utf8/goldlib/gcfg/gxmax3.cpp:38:0: ~/Projects/g olded-plus-utf8/goldlib/gcfg/gs_max3.h:134:36: warning: ‘packed’ attribute ignored [-Wattributes] } max_option __attribute__((packed));
^
[ 46%] Building CXX object
goldlib/gcfg/CMakeFiles/gcfg.dir/gxwtr.cpp.o In file included from ~/Projects/golded-plus-utf8/goldlib/gcfg/gxwtr.cpp:36:0: ~/Projects/go lded-plus-utf8/goldlib/gcfg/gs_wtr.h:184:3: warning: anonymous type
with no linkage used to declare variable ‘<anonymous struct> GroupDescRecord’ with linkage [enabled by default] } GroupDescRecord;
^
~/Projects/golded-plus-utf8/goldlib/gcfg/gs_wtr.h:363:3: warning: anonymous type with no linkage used to declare variable ‘<anonymous struct> UserBaseRecord’ with linkage [enabled by default] } UserBaseRecord;
^
All three are cosmetic and pre-date the unicode branch. In gs_max3.h
the packed attribute sits after the typedef name, so it applies to the name and every compiler drops it (gcc 15 and clang say the same). The
enum is held at 16 bits by the rsvd=32766 member anyway.
The two in gs_wtr.h are the same thing twice: GroupDescRecord and UserBaseRecord are variables of anonymous structs rather than
typedefs, which gcc 4.8 on Leap 42.1 reports as a type without linkage
and gcc 5 and later no longer do. None of them changes the binary.
Ok, thanks for the clarification.
Yesterday I also tried compiling on a more modern system with gcc 15.3.0.. The gs_wtr.h warnings were indeed gone, but I got this extra one. (I don't know if this one is from before the unicode branch)
Yesterday I also tried compiling on a more modern system with gcc
15.3.0.. The gs_wtr.h warnings were indeed gone, but I got this extra
one. (I don't know if this one is from before the unicode branch)
Yesterday I also tried compiling on a more modern system with gcc
15.3.0.. The gs_wtr.h warnings were indeed gone, but I got this extra
one. (I don't know if this one is from before the unicode branch)
Be glad you're only seeing a few or less warnings. Using GNU make with gcc 16.2.1, there are hundreds of them (a lot of the same ones over and over, though).
There has always been a large number of warnings with Golded, as long
as I've used it. As long as it compiles without error, it seems to
work. ;)
| Sysop: | Sarah |
|---|---|
| Location: | Portland, Oregon |
| Users: | 324 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 08:51:14 |
| Calls: | 2,254 |
| Calls today: | 2,254 |
| Files: | 85,325 |
| U/L today: |
554 files (10,683M bytes) |
| D/L today: |
162,072 files (57,633M bytes) |
| Messages: | 83,147 |
| Posted today: | 92 |