mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C++: Silence some more 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 or wrapping the defining class in an anonymous namespace the TRAP keys will differ from each other.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
namespace {
|
||||
class C {
|
||||
public:
|
||||
C* d;
|
||||
static void g(int x, int y);
|
||||
};
|
||||
}
|
||||
|
||||
static void f() {
|
||||
int i, j, k, l;
|
||||
|
||||
Reference in New Issue
Block a user