"Unused private field" build failure(s)
clang 3.2
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 |
aptitude | 0.6.8.2-1 | ../../../../src/generic/util/temp.h:140:10: error: private field 'forceful_delete' is not used [-Werror,-Wunused-private-field]
| Log |
|
avian | 0.6+20121011-1 | src/machine.cpp:4881:13: error: private field 't' is not used [-Werror,-Wunused-private-field]
| Log |
|
libwpd | 0.9.4-3 | ./WP6ContentListener.h:81:16: error: private field 'm_currentState' is not used [-Werror,-Wunused-private-field]
| Log |
|
libwpg | 0.2.1-1 | ./WPGHeader.h:54:16: error: private field 'm_entryCount' is not used [-Werror,-Wunused-private-field]
| Log |
|
libwps | 0.2.7-1 | ./TextDocumentGenerator.h:101:15: error: private field 'm_currentListLevel' is not used [-Werror,-Wunused-private-field]
| Log |
|
mozc | 1.5.1090.102-4 | ./storage/sparse_array_image.h:120:7: error: private field 'size_' is not used [-Werror,-Wunused-private-field]
| Log |
|
qpid-cpp | 0.16-7 | qpid/client/RdmaConnector.cpp:72:33: error: private field 'initialiser' is not used [-Werror,-Wunused-private-field]
| Log |
|
7 errors