From 774d8047e0f0ac0824a81b176cec761aac1e62d7 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 21 Oct 2018 13:11:23 +0300 Subject: fix some compiler warnings --- src/actions.c | 1 + src/dblayer.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index fcdf308..7cbd32a 100644 --- a/src/actions.c +++ b/src/actions.c @@ -75,6 +75,7 @@ int run_ADD(UserOpt * opt, Conf *conf) { } int run_DEL(UserOpt * opt, Conf *conf) { + UNUSED(conf); DB db = open_DB(opt); if (db.ptr == NULL) { if (db.error == SQL_ERR_NO_TABLES) { diff --git a/src/dblayer.c b/src/dblayer.c index da5d57e..0a59938 100644 --- a/src/dblayer.c +++ b/src/dblayer.c @@ -454,7 +454,6 @@ int edit_get_config(DB *db, const char *pName, char *ret, const char *cName, int char *tmp = strdup((char *)sqlite3_column_text(stmt, 0)); if (strcmp(cName, basename(tmp)) == 0) { flag = 0; - char confName[STR_M]; str_make_ck_config_name(confName, (char *)sqlite3_column_text(stmt, 0), pName); strcpy(ret, confName); if (sec) { @@ -464,7 +463,6 @@ int edit_get_config(DB *db, const char *pName, char *ret, const char *cName, int free(tmp); } else { - char confName[STR_M]; str_make_ck_config_name(confName, (char *)sqlite3_column_text(stmt, 0), pName); strcpy(ret, confName); flag = 0; -- cgit v1.2.3