Re: G++ warnings for set-control-group-knob from nosh-1.37

From: Guillermo <>
Date: Sun, 11 Mar 2018 23:33:00 -0300

2018-03-11 20:57 GMT-03:00 Jonathan de Boyne Pollard:
> The macro generates no warning in the GNU C library in Debian 9, but I
> should have caught that overload that was not passing by reference. It is
> fixed now, thank you. The in-development source archive for 1.38 is in the
> usual place.

Yes, both G++ warnings are gone now. BTW, the removal of the macros
from <sys/types.h> has already been committed, so it looks like it is
going to happen for GNU libc version 2.28:


However, a new warning has appeared:

In file included from set-control-group-knob.cpp:23:0:
popt.h:85:16: warning: 'virtual bool
popt::table_definition::execute(popt::processor&, char, const char*)'
was hidden [-Woverloaded-virtual]
   virtual bool execute(processor &, char c, const char * s);
popt.h:100:16: warning: by 'popt::top_table_definition::execute'
   virtual bool execute(processor &, const char * s);

I believe this is because the 1.38 development version dropped a
'using table_definition::execute;' declaration from the definition of
class popt::top_table_definition that was present in 1.37, so the
three parameter version of popt::table_definition::execute() would now
be hidden. I only did a quick 'redo set-control-group-knob.o' test, so
I'm not sure if it is important or if it affects anything, though.

Received on Mon Mar 12 2018 - 02:33:00 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC