Skip to content

Data: warning: 'isNull' overrides a member function but is not marked 'override'  #4768

@matejk

Description

@matejk

Describe the bug

clang reports warnings when compiling.

Logs

Compiler output:

[1051/1178 10.3/sec] Building CXX object Data/testsuite/CMakeFiles/Data-testrunner.dir/src/DataTest.cpp.o
In file included from /Users/matejk/git/github/poco/Data/testsuite/src/DataTest.cpp:12:
/Users/matejk/git/github/poco/Data/testsuite/src/Extractor.h:422:7: warning: 'isNull' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  422 |         bool isNull(std::size_t col, std::size_t row = -1);
      |              ^
/Users/matejk/git/github/poco/Data/include/Poco/Data/AbstractExtractor.h:431:15: note: overridden virtual function is here
  431 |         virtual bool isNull(std::size_t col, std::size_t row = POCO_DATA_INVALID_ROW) = 0;
      |                      ^
In file included from /Users/matejk/git/github/poco/Data/testsuite/src/DataTest.cpp:12:
/Users/matejk/git/github/poco/Data/testsuite/src/Extractor.h:425:7: warning: 'reset' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  425 |         void reset();
      |              ^
/Users/matejk/git/github/poco/Data/include/Poco/Data/AbstractExtractor.h:434:15: note: overridden virtual function is here
  434 |         virtual void reset();
      |                      ^
2 warnings generated.

Please add relevant environment information:

  • macOS 15.0.1
  • POCO Version: 1.14 (pre-release)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions