Fossil SCM
Disable the SQLite automatic index warning on non-debug builds.
Commit
1336c4af8a016772a8221632eb2e8983635bcbb93eed0bd4167ce17e39f0ae7b
Parent
55a3316b627d3ad…
1 file changed
+4
+4
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -506,10 +506,14 @@ | ||
| 506 | 506 | #ifdef __APPLE__ |
| 507 | 507 | /* Disable the file alias warning on apple products because Time Machine |
| 508 | 508 | ** creates lots of aliases and the warning alarms people. */ |
| 509 | 509 | if( iCode==SQLITE_WARNING ) return; |
| 510 | 510 | #endif |
| 511 | +#ifndef FOSSIL_DEBUG | |
| 512 | + /* Disable the automatic index warning except in FOSSIL_DEBUG builds. */ | |
| 513 | + if( iCode==SQLITE_WARNING_AUTOINDEX ) return; | |
| 514 | +#endif | |
| 511 | 515 | if( iCode==SQLITE_SCHEMA ) return; |
| 512 | 516 | if( g.dbIgnoreErrors ) return; |
| 513 | 517 | #ifdef SQLITE_READONLY_DIRECTORY |
| 514 | 518 | if( iCode==SQLITE_READONLY_DIRECTORY ){ |
| 515 | 519 | zErrmsg = "database is in a read-only directory"; |
| 516 | 520 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -506,10 +506,14 @@ | |
| 506 | #ifdef __APPLE__ |
| 507 | /* Disable the file alias warning on apple products because Time Machine |
| 508 | ** creates lots of aliases and the warning alarms people. */ |
| 509 | if( iCode==SQLITE_WARNING ) return; |
| 510 | #endif |
| 511 | if( iCode==SQLITE_SCHEMA ) return; |
| 512 | if( g.dbIgnoreErrors ) return; |
| 513 | #ifdef SQLITE_READONLY_DIRECTORY |
| 514 | if( iCode==SQLITE_READONLY_DIRECTORY ){ |
| 515 | zErrmsg = "database is in a read-only directory"; |
| 516 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -506,10 +506,14 @@ | |
| 506 | #ifdef __APPLE__ |
| 507 | /* Disable the file alias warning on apple products because Time Machine |
| 508 | ** creates lots of aliases and the warning alarms people. */ |
| 509 | if( iCode==SQLITE_WARNING ) return; |
| 510 | #endif |
| 511 | #ifndef FOSSIL_DEBUG |
| 512 | /* Disable the automatic index warning except in FOSSIL_DEBUG builds. */ |
| 513 | if( iCode==SQLITE_WARNING_AUTOINDEX ) return; |
| 514 | #endif |
| 515 | if( iCode==SQLITE_SCHEMA ) return; |
| 516 | if( g.dbIgnoreErrors ) return; |
| 517 | #ifdef SQLITE_READONLY_DIRECTORY |
| 518 | if( iCode==SQLITE_READONLY_DIRECTORY ){ |
| 519 | zErrmsg = "database is in a read-only directory"; |
| 520 |