From 9d3fb41eef3897ce2942beedf8ca546646f22293 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 26 Jul 2022 10:11:50 +1200 Subject: [PATCH] Fix MSVC error in cpp_typedef.i MSVC in C++20 mode complains: error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes The struct member in question isn't actually used by the testcase, so just remove it. --- Examples/test-suite/cpp_typedef.i | 1 - 1 file changed, 1 deletion(-) diff --git a/Examples/test-suite/cpp_typedef.i b/Examples/test-suite/cpp_typedef.i index 8578988e9..140df34ae 100644 --- a/Examples/test-suite/cpp_typedef.i +++ b/Examples/test-suite/cpp_typedef.i @@ -30,7 +30,6 @@ public: // Test that the correct types are used for typedef struct declarations typedef struct { int something; - void m() {} } UnnamedStruct; typedef struct NamedStruct {