Skip to content

Commit d4e5906

Browse files
committed
Fix some (clang) compiler warnings
1 parent 051d42a commit d4e5906

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/checkunusedvar.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ class Variables {
9393
}
9494

9595
private:
96+
/** No implementation */
97+
ScopeGuard& operator=(const ScopeGuard &);
98+
9699
Variables & _guarded;
97100
bool _insideLoop;
98101
};

lib/executionpath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SymbolDatabase;
3535
class CPPCHECKLIB ExecutionPath {
3636
private:
3737
/** No implementation */
38-
void operator=(const ExecutionPath &);
38+
ExecutionPath& operator=(const ExecutionPath &);
3939

4040
protected:
4141
Check * const owner;

lib/mathlib.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ bool MathLib::isValidSuffix(std::string::const_iterator it, std::string::const_i
423423
break;
424424
default:
425425
return false;
426-
break;
427426
}
428427
}
429428
return ((state == SUFFIX_U) ||

0 commit comments

Comments
 (0)