From 2a72852b95b8737f782553b6fef587eae01a738d Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 22 May 2013 14:30:02 +0800 Subject: Fix build warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes warnings like these: warning: ‘add_db_op_entry’ defined but not used Signed-off-by: Geoff Levand --- lib/flash-db.c | 2 +- ps3-flash-util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flash-db.c b/lib/flash-db.c index b6591c0..9bdc01d 100644 --- a/lib/flash-db.c +++ b/lib/flash-db.c @@ -113,7 +113,7 @@ next: * enumerate_64 - Helper to find and operate on 64 bit entries. */ -static int enumerate_64(struct os_area_db *db, +static int __attribute__((unused)) enumerate_64(struct os_area_db *db, const struct os_area_db_id *id, int (*fn)(void *inst, struct index *idx, uint64_t *value), void *inst) diff --git a/ps3-flash-util.c b/ps3-flash-util.c index 480500d..8ae2af7 100644 --- a/ps3-flash-util.c +++ b/ps3-flash-util.c @@ -349,7 +349,7 @@ static int pickup_db_op_entry(char *argv[], enum db_op_type type, return 0; } -static int add_db_op_entry(enum db_op_type type, enum os_area_db_owner owner, +static int __attribute__((unused)) add_db_op_entry(enum db_op_type type, enum os_area_db_owner owner, enum os_area_db_key key, const char *optarg, struct db_op_entry** list) { int result; -- cgit 1.2.3-korg