Skip to content

Commit

Permalink
marked ErrorMessage::FileLocation with WARN_UNUSED / added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Mar 24, 2024
1 parent d3d4051 commit a2d2ddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/ctu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ bool CTU::FileInfo::FunctionCall::loadFromXml(const tinyxml2::XMLElement *xmlEle
const int column = readAttrInt(e2, ATTR_LOC_COLUMN, &error);
ErrorMessage::FileLocation loc(file, line, column);
loc.setinfo(readAttrString(e2, ATTR_INFO, &error));
// TODO: loc is unused
}
return !error;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/errorlogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CPPCHECKLIB ErrorMessage {
* Internally paths are stored with / separator. When getting the filename
* it is by default converted to native separators.
*/
class CPPCHECKLIB FileLocation {
class CPPCHECKLIB WARN_UNUSED FileLocation {
public:
FileLocation(const std::string &file, int line, unsigned int column)
: fileIndex(0), line(line), column(column), mOrigFileName(file), mFileName(file) {}
Expand Down

0 comments on commit a2d2ddd

Please sign in to comment.