diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2023-05-11 09:27:12 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2023-05-11 09:30:10 +0300 |
commit | 93ee7d9c6164467608094a7e0652a0e3d84a6715 (patch) | |
tree | 3e2777baea74d24e9eae806da92238f8286de424 | |
parent | ae1b8c8c4eb26dd677e39a91f65f8a17f6bdbbf2 (diff) | |
download | rpm-93ee7d9c6164467608094a7e0652a0e3d84a6715.tar.gz |
Silence an apparent false positive warning from gcc in -Og mode
Haven't looked at the assembler but I don't see how xx could be
uninitialized by the time it gets to the if(), regardless of the
optimization used.
-rw-r--r-- | lib/backend/sqlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backend/sqlite.c b/lib/backend/sqlite.c index d5389736b..5a029d575 100644 --- a/lib/backend/sqlite.c +++ b/lib/backend/sqlite.c @@ -135,7 +135,7 @@ static int sqlite_init(rpmdb rdb, const char * dbhome) if (rdb->db_dbenv == NULL) { dbfile = rpmGenPath(dbhome, rdb->db_ops->path, NULL); sqlite3 *sdb = NULL; - int xx, flags = 0; + int xx = SQLITE_CANTOPEN, flags = 0; int retry_open = 1; if ((rdb->db_mode & O_ACCMODE) == O_RDONLY) flags |= SQLITE_OPEN_READONLY; |