If you compile GNU APL with neither SQLite nor Postgres available, there
will be an undefined variable ‘p’ in Quad_SQL.cc.
Attached is a patch that fixes this issue.
Regards,
Elias
Index: src/Quad_SQL.cc
===================================================================
--- src/Quad_SQL.cc (revision 849)
+++ src/Quad_SQL.cc (working copy)
@@ -53,20 +53,18 @@
inline void
init_provider_map()
{
-Provider * p;
#ifdef HAVE_SQLITE3
-
- p = new SqliteProvider();
- Assert(p);
- providers.append(p);
+ Provider *sqliteProvider = new SqliteProvider();
+ Assert(sqliteProvider);
+ providers.append(sqliteProvider);
#elif REALLY_WANT_SQLITE3
# warning "SQLite3 unavailable since ./configure could not detect it"
#endif
#ifdef USABLE_PostgreSQL
- p = new PostgresProvider();
- Assert(p);
- providers.append(p);
+ Provider *postgresProvider = new PostgresProvider();
+ Assert(postgresProvider);
+ providers.append(postgresProvider);
#elif REALLY_WANT_PostgreSQL
# warning "PostgreSQL unavailable since ./configure could not detect it."
# if HAVE_POSTGRESQL