From d4e59065df031b4a4443e4baad269e1927618276 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Thu, 20 Nov 2014 20:49:05 +0100 Subject: [PATCH] Fix some (clang) compiler warnings --- lib/checkunusedvar.cpp | 3 +++ lib/executionpath.h | 2 +- lib/mathlib.cpp | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/checkunusedvar.cpp b/lib/checkunusedvar.cpp index 23a71d071..5ef468af7 100644 --- a/lib/checkunusedvar.cpp +++ b/lib/checkunusedvar.cpp @@ -93,6 +93,9 @@ public: } private: + /** No implementation */ + ScopeGuard& operator=(const ScopeGuard &); + Variables & _guarded; bool _insideLoop; }; diff --git a/lib/executionpath.h b/lib/executionpath.h index e973431f7..359fbde93 100644 --- a/lib/executionpath.h +++ b/lib/executionpath.h @@ -35,7 +35,7 @@ class SymbolDatabase; class CPPCHECKLIB ExecutionPath { private: /** No implementation */ - void operator=(const ExecutionPath &); + ExecutionPath& operator=(const ExecutionPath &); protected: Check * const owner; diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index aa0ee2607..240027026 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -423,7 +423,6 @@ bool MathLib::isValidSuffix(std::string::const_iterator it, std::string::const_i break; default: return false; - break; } } return ((state == SUFFIX_U) ||