summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-05-22 14:30:02 +0800
committerGeoff Levand <geoff@infradead.org>2013-05-22 14:30:02 +0800
commit2a72852b95b8737f782553b6fef587eae01a738d (patch)
tree4512bc3eab21ccf1797a1cc67f5bba8fbe6dda6e
parent4268a6023c22e861c0345b655c3f4b0d013fe6fe (diff)
downloadps3-utils-2a72852b95b8737f782553b6fef587eae01a738d.tar.gz
Fix build warnings.
Fixes warnings like these: warning: ‘add_db_op_entry’ defined but not used Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r--lib/flash-db.c2
-rw-r--r--ps3-flash-util.c2
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;