"warning: 'BSOCK::send' hides overloaded virtual function" in 15.0.0 Beta 01Nov23
Summary
Reproducibility | Platform | OS | OS Version | Product Version |
---|---|---|---|---|
always | AMD64 | FreeBSD | 12.4 | 15.0.0 Beta 01Nov23 |
Description
Compiling most files generates a warning like below:
gmake[1]: Entering directory '/u/ldisk/bacula/git/build-test/bacula/src/lib'
Compiling attr.c
In file included from attr.c:27:
In file included from ../bacula.h:169:
In file included from ../lib/lib.h:53:
./bsock.h:87:9: warning: 'BSOCK::send' hides overloaded virtual function [-Woverloaded-virtual]
bool send(int flags);
^
./bsockcore.h:142:17: note: hidden overloaded virtual function 'BSOCKCORE::send' declared here: different
number of parameters (2 vs 1)
virtual bool send(char *buf, uint32_t len);
^
1 warning generated.
I think one of the functions should be renamed.
Steps to Reproduce
- Configure and compile with CFLAGS="-g -Wall"