aboutsummaryrefslogtreecommitdiffstats
path: root/tools/check_seapp.c
diff options
context:
space:
mode:
authorRobert Craig <rpcraig@tycho.ncsc.mil>2013-11-01 10:24:36 -0400
committerRobert Craig <rpcraig@tycho.ncsc.mil>2013-11-01 11:53:46 -0400
commitc9bb91da5fc84bce936f0795d18bf5c36fa5db6f (patch)
tree51ee6ce9df586c464e65621695a9b6d7b829e340 /tools/check_seapp.c
parent2d8a42373e483d0f3b952699ada5bbf323593d8a (diff)
downloadandroid_external_sepolicy-c9bb91da5fc84bce936f0795d18bf5c36fa5db6f.tar.gz
android_external_sepolicy-c9bb91da5fc84bce936f0795d18bf5c36fa5db6f.tar.bz2
android_external_sepolicy-c9bb91da5fc84bce936f0795d18bf5c36fa5db6f.zip
Reintroduce -Wall -Werror to check_seapp.
Also add attribute for a potential unused function argument when dealing with darwin SDK builds. Change-Id: Iefdbecb050cc5fff6036f15413566e10cefa3813
Diffstat (limited to 'tools/check_seapp.c')
-rw-r--r--tools/check_seapp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check_seapp.c b/tools/check_seapp.c
index ed781bf..19e2ab2 100644
--- a/tools/check_seapp.c
+++ b/tools/check_seapp.c
@@ -436,7 +436,8 @@ static map_match rule_map_cmp(rule_map *rmA, rule_map *rmB) {
* @param rm
* rule map to be freed.
*/
-static void rule_map_free(rule_map *rm, rule_map_switch s) {
+static void rule_map_free(rule_map *rm,
+ rule_map_switch s __attribute__((unused)) /* only glibc builds, ignored otherwise */) {
size_t i;
size_t len = rm->length;