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:
Jeroen Ketema
2023-03-03 12:05:56 +01:00
parent f649def3f8
commit 4faede0e2c
28 changed files with 82 additions and 74 deletions

View File

@@ -1,7 +1,9 @@
namespace {
class C {
public:
static void g();
};
}
static void f() {
C c;