mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
C++: Silence a number of bogus consistency errors in syntax zoo
These were due to several functions occurring that would have the same TRAP key. By making the functions static the TRAP keys will differ from each other.
This commit is contained in:
@@ -3,7 +3,7 @@ class C {
|
||||
C(int x, int y);
|
||||
};
|
||||
|
||||
void f() {
|
||||
static void f() {
|
||||
int i, j, k, l;
|
||||
C c(i + j, k - l);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user