Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Silence some false positive cppcheck internalAstError warnings
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent cb360f0 commit 98ed214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsexception.h
Expand Up @@ -42,6 +42,7 @@ class CORE_EXPORT QgsException
: mWhat( message )
{}

// cppcheck-suppress internalAstError
virtual ~QgsException() throw() = default;

//! \note not available in Python bindings
Expand Down
1 change: 1 addition & 0 deletions src/core/qgslogger.cpp
Expand Up @@ -51,6 +51,7 @@ void QgsLogger::init()
;

sPrefixLength = sizeof( CMAKE_SOURCE_DIR );
// cppcheck-suppress internalAstError
if ( CMAKE_SOURCE_DIR[sPrefixLength - 1] == '/' )
sPrefixLength++;
}
Expand Down

0 comments on commit 98ed214

Please sign in to comment.