Skip to content

Commit 98ed214

Browse files
committedApr 17, 2023
Silence some false positive cppcheck internalAstError warnings
1 parent cb360f0 commit 98ed214

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/core/qgsexception.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class CORE_EXPORT QgsException
4242
: mWhat( message )
4343
{}
4444

45+
// cppcheck-suppress internalAstError
4546
virtual ~QgsException() throw() = default;
4647

4748
//! \note not available in Python bindings

‎src/core/qgslogger.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void QgsLogger::init()
5151
;
5252

5353
sPrefixLength = sizeof( CMAKE_SOURCE_DIR );
54+
// cppcheck-suppress internalAstError
5455
if ( CMAKE_SOURCE_DIR[sPrefixLength - 1] == '/' )
5556
sPrefixLength++;
5657
}

0 commit comments

Comments
 (0)
Please sign in to comment.