From 845205f12d5aeb0275a59259b5c658104a7d9197 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 12 Jun 2020 12:13:12 -0400 Subject: userdata structures need to exist for lifetime of hooks. Apparently earlier compilers took our `const structs` and put them into const data for us so their lifetime was effectively equivalent to `static`. Some change/optimization in 11.4.1 has moved to that not being the case. Explicitly make the data structures `static`. --- Foundation/GTMSQLiteTest.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Foundation/GTMSQLiteTest.m') diff --git a/Foundation/GTMSQLiteTest.m b/Foundation/GTMSQLiteTest.m index adf687c..dda204d 100644 --- a/Foundation/GTMSQLiteTest.m +++ b/Foundation/GTMSQLiteTest.m @@ -425,7 +425,7 @@ static void TestUpperLower16Impl(sqlite3_context *context, errorCode:&err] autorelease]; - const struct { + static const struct { const char *sqlName; UpperLowerUserArgs userArgs; void *function; -- cgit v1.2.3