summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--minzip/inline_magic.h2
-rw-r--r--tools/ota/check-lost+found.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/minzip/inline_magic.h b/minzip/inline_magic.h
index 8c185e155..59c659f77 100644
--- a/minzip/inline_magic.h
+++ b/minzip/inline_magic.h
@@ -18,7 +18,7 @@
#define MINZIP_INLINE_MAGIC_H_
#ifndef MINZIP_GENERATE_INLINES
-#define INLINE extern __inline__
+#define INLINE extern inline __attribute((__gnu_inline__))
#else
#define INLINE
#endif
diff --git a/tools/ota/check-lost+found.c b/tools/ota/check-lost+found.c
index f85627544..da02f4602 100644
--- a/tools/ota/check-lost+found.c
+++ b/tools/ota/check-lost+found.c
@@ -44,7 +44,7 @@ static const char *kPartitions[] = { "/system", "/data", "/cache", NULL };
* 2. Write a log entry with the number of files in lost+found directories.
*/
-int main(int argc, char **argv) {
+int main(int argc __attribute__((unused)), char **argv __attribute__((unused))) {
mkdir(kOutputDir, 0755);
chown(kOutputDir, AID_SYSTEM, AID_SYSTEM);
FILE *out = fopen(kOutputFile, "a");