diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-05-08 09:31:43 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-05-14 12:41:24 -0700 |
commit | aa907768af7ba9e29901d356cdcac6a436970323 (patch) | |
tree | 37b375fc862fad56969e14243bcd394d4a8e91b2 /toolbox/watchprops.c | |
parent | 3fe8afa404a4317807c7116fdab40f2506713396 (diff) | |
download | system_core-aa907768af7ba9e29901d356cdcac6a436970323.zip system_core-aa907768af7ba9e29901d356cdcac6a436970323.tar.gz system_core-aa907768af7ba9e29901d356cdcac6a436970323.tar.bz2 |
toolbox: turn on -Werror
- Deal with some signedness issues
- Deal with some size issues
- Deal with NULL pointer issues
- Deal with some -Wunused issues
Change-Id: I1479dd90d690084491bae3475f2c547833519a57
Diffstat (limited to 'toolbox/watchprops.c')
-rw-r--r-- | toolbox/watchprops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toolbox/watchprops.c b/toolbox/watchprops.c index bf82882..9921dbc 100644 --- a/toolbox/watchprops.c +++ b/toolbox/watchprops.c @@ -77,9 +77,7 @@ static void update_watchlist(const prop_info *pi, void *cookie) int watchprops_main(int argc, char *argv[]) { - unsigned serial = 0; - unsigned count = 0; - unsigned n; + unsigned serial; Hashmap *watchlist = hashmapCreate(1024, str_hash, str_equals); if (!watchlist) @@ -87,7 +85,7 @@ int watchprops_main(int argc, char *argv[]) __system_property_foreach(populate_watchlist, watchlist); - for(;;) { + for(serial = 0;;) { serial = __system_property_wait_any(serial); __system_property_foreach(update_watchlist, watchlist); } |