"Unused private field" build failure(s)
clang 5.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-9 | DDK/XnPixelStream.h:135:9: error: private field 'm_bAllowCustomResolutions' is not used [-Werror,-Wunused-private-field]
| Log |
|
2 errors