- GOLDED ------------------ < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 80 из 100
 От   : Wilfred van Velzen                  2:280/464         15 сен 26 10:17:58
 К    : Eugene Subbotin                                       15 сен 26 11:29:02
 Тема : Re: New warnings on todays build
----------------------------------------------------------------------------------
                                                                                 
@TID: FMail-lnx64 2.3.4.1-B20260520
@RFC-X-No-Archive: Yes
@TZUTC: 0200
@CHRS: UTF-8 4
@PID: GED+LNX 2.0.0-b20260914
@MSGID: 2:280/464 6aa90105
@REPLY: 2:5075/35@fidonet 6aa82c4f
Hi Eugene,

On 2026-09-14 20:15:32, you wrote to me:

 ES> All three are cosmetic and pre-date the unicode branch. In gs_max3.h
 ES> the packed attribute sits after the typedef name, so it applies to the
 ES> name and every compiler drops it (gcc 15 and clang say the same). The
 ES> enum is held at 16 bits by the rsvd=32766 member anyway.

 ES> The two in gs_wtr.h are the same thing twice: GroupDescRecord and
 ES> UserBaseRecord are variables of anonymous structs rather than
 ES> typedefs, which gcc 4.8 on Leap 42.1 reports as a type without linkage
 ES> 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)

[ 95%] Building CXX object golded3/CMakeFiles/golded.dir/geusrbse.cpp.o
~/Projects/golded-plus-utf8/golded3/geusrbse.cpp: In member function `virtual
void guserbase::print_line(uint, uint, bool)`:
~/Projects/golded-plus-utf8/golded3/geusrbse.cpp:239:48: warning: ignoring
return value of `std::__cxx11::basic_string<_Char
T, _Traits, _Alloc> std::operator+(__cxx11::basic_string<_CharT, _Traits,
_Alloc>&&, const _CharT*) [with _CharT = char; _Traits = char_traits;
_Alloc = allocator]`, declared with attribute `nodiscard`
[-Wunused-result]
  239 |             ((useraddr = "<") + entry.iaddr) + ">";
      |                                                ^~~
In file included from /usr/include/c++/15/string:56,
                 from /usr/include/c++/15/bits/locale_classes.h:42,
                 from /usr/include/c++/15/bits/ios_base.h:43,
                 from /usr/include/c++/15/ios:46,
                 from /usr/include/c++/15/bits/ostream.h:43,
                 from /usr/include/c++/15/ostream:42,
                 from /usr/include/c++/15/iostream:43,
                 from ~/Projects/golded-plus-utf8/golded3/golded.h:35,
                 from ~/Projects/golded-plus-utf8/golded3/geusrbse.cpp:29:
/usr/include/c++/15/bits/basic_string.h:3973:5: note: declared here
 3973 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~


Bye, Wilfred.

--- FMail-lnx64 2.3.4.1-B20260520
 * Origin: FMail development HQ (2:280/464)
SEEN-BY: 103/705 124/5016 153/757 154/10 30 203/0 221/0 240/1120 5832 263/1
SEEN-BY: 280/464 1043 5003 5006 5555 292/854 8125 301/1 310/31 341/66 234
SEEN-BY: 396/45 423/120 460/58 633/280 712/848 770/1 5001/100 5015/46 5020/290
SEEN-BY: 5020/570 715 806 1042 1146 5023/24 5030/1081 5034/13 5051/44 5053/58
SEEN-BY: 5057/19 6035/3
@PATH: 280/464 5555 5020/715



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх