From 04524550f01c17bc6b489adbc26791ed9171e3dd Mon Sep 17 00:00:00 2001 From: Alex Buynytskyy Date: Thu, 16 Jul 2020 15:25:00 -0700 Subject: Fix for sqlite3_open_v2 returning errors. Happened after default compilation flags changed in ag/11474704. The fix is to revert the flags for just this library. Fixes: 160728363 Test: manually install the apk in the bug and verify it's not crashing/throwing the exception. Change-Id: I9e02a810bee088b35d25921086810f695956d6d3 Merged-In: I9e02a810bee088b35d25921086810f695956d6d3 --- dist/Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/Android.bp b/dist/Android.bp index 414c84d..d4eb4b4 100644 --- a/dist/Android.bp +++ b/dist/Android.bp @@ -41,6 +41,9 @@ cc_defaults { "-Wno-unused-parameter", "-Werror", + // Default value causes sqlite3_open_v2 to return error if DB is missing. + "-ftrivial-auto-var-init=pattern", + // Turn off the new pass manager due to miscompile. // http://b/131854833 "-fno-experimental-new-pass-manager", -- cgit v1.2.3