mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
The code is correct as it contains an assert(3) in the "default" switch
case, but GCC 4.3 is not able to detect this and instead complains with "warning: 'amode' may be used uninitialized in this function". Hence, although the assert(3) already protects the code here, get rid of this compiler warning by doing a simple initialization of the "amode" variable. (CVS 4436) FossilOrigin-Name: 91831ff2922666b39d8f4ba448982c6763030633
This commit is contained in:
@@ -2451,7 +2451,7 @@ static int unixDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
|
||||
** Otherwise return 0.
|
||||
*/
|
||||
static int unixAccess(sqlite3_vfs *pVfs, const char *zPath, int flags){
|
||||
int amode;
|
||||
int amode = 0;
|
||||
switch( flags ){
|
||||
case SQLITE_ACCESS_EXISTS:
|
||||
amode = F_OK;
|
||||
|
||||
Reference in New Issue
Block a user