Remove build warnings
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 26 Apr 2021 06:09:23 +0000 (15:09 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Mon, 26 Apr 2021 06:33:00 +0000 (15:33 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/server/initialize_db_internal.c
src/server/pkginfo_internal.c
test/unit_tests/parcel_utils.cc

index 6e4379e..3c15ad2 100644 (file)
@@ -219,7 +219,6 @@ static int __initialize_db(sqlite3 *db, const char *dbpath, uid_t uid)
 API int pkgmgr_parser_internal_initialize_db(sqlite3 *db, uid_t uid)
 {
        const char *dbpath;
-       const char **queries;
 
        dbpath = sqlite3_db_filename(db, "main");
        if (dbpath == NULL) {
index cd9ee32..2def701 100644 (file)
@@ -781,7 +781,6 @@ static int __execute_query(sqlite3 *db, const char *query, GList *param)
 API int execute_write_queries(sqlite3 *db, GList *queries, GList *params_list)
 {
        int i;
-       int j;
        query_args *tmp_ptr = NULL;
 
        if (db == NULL || queries == NULL) {
index b9ead05..55116e6 100644 (file)
@@ -762,7 +762,7 @@ bool IsEqualDepInfo(const std::vector<dependency_x *>& depA,
     const std::vector<dependency_x *>& depB) {
   INT_EQ(depA.size(), depB.size());
 
-  for (int i = 0; i < depA.size(); ++i) {
+  for (int i = 0; i < static_cast<int>(depA.size()); ++i) {
     dependency_x *A = depA[0];
     dependency_x *B = depB[0];
     STR_EQ(A->depends_on, B->depends_on);