diff options
author | Dan Albert <danalbert@google.com> | 2014-09-08 19:09:41 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-09-11 17:17:32 +0000 |
commit | 949aa238981e6cedfc6d3f12fc9001a71162c6f3 (patch) | |
tree | fb3c65fa385ede94bf30e5390bf35b83f7b9b66f /fastbootd | |
parent | 2c805883408339823d3f3ca23aceb08a1783ebbd (diff) | |
download | core-949aa238981e6cedfc6d3f12fc9001a71162c6f3.tar.gz core-949aa238981e6cedfc6d3f12fc9001a71162c6f3.tar.bz2 core-949aa238981e6cedfc6d3f12fc9001a71162c6f3.zip |
Fix some clang compilation issues.
Use expected inline behavior with clang.
GCC defaults to -std=gnu90, giving C89 inline semantics with GNU
extensions. Clang defaults to C99. Explicitly use gnu90.
Mark an unused parameter as __unused.
Fix some incorrect casts.
Change-Id: I05b95585d5e3688eda71769b63b6b8a9237bcaf4
Diffstat (limited to 'fastbootd')
-rw-r--r-- | fastbootd/vendor_trigger_default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastbootd/vendor_trigger_default.c b/fastbootd/vendor_trigger_default.c index 362702491..0bcc99bf9 100644 --- a/fastbootd/vendor_trigger_default.c +++ b/fastbootd/vendor_trigger_default.c @@ -52,7 +52,7 @@ int trigger_gpt_layout(struct GPT_content *table) { return 0; } -int trigger_oem_cmd(const char *arg, const char **response) { +int trigger_oem_cmd(const char *arg, const char **response __unused) { KLOG_DEBUG("fastbootd", "%s: %s", __func__, arg); return 0; } |