"Unused private field" build failure(s)
clang 6.0
clang -Wall -Werror will fail because bar is private (by default) and never used. g++ does not complain here.
class foo
{
int bar;
};
Package | Version | Supposed error message | Full log |
Bug report |
drbd-utils | 8.9.10-2 | ./CompactDisplay.h:159:19: error: private field 'out' is not used [-Werror,-Wunused-private-field]
| Log |
|
openni2 | 2.2.0.33+dfsg-10 | DDK/XnPixelStream.h:135:9: error: private field 'm_bAllowCustomResolutions' is not used [-Werror,-Wunused-private-field]
| Log |
|
openzwave | 1.5+ds-5 | ValueList.h:85:11: error: private field 'm_newValueIdx' is not used [-Werror,-Wunused-private-field]
| Log |
|
3 errors