summaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.h
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-05-11 16:59:46 +0100
committerNarayan Kamath <narayan@google.com>2015-05-13 09:20:44 +0000
commit241bcf05e0e394bbf2681f359f52646dd6c707f6 (patch)
treed696fd93cc972e8e5e3c39d8e0d37d6fabe7e555 /fastboot/fastboot.h
parent55431d97459210f0f4ac66538ca6cbf8cf3511e9 (diff)
downloadsystem_core-241bcf05e0e394bbf2681f359f52646dd6c707f6.zip
system_core-241bcf05e0e394bbf2681f359f52646dd6c707f6.tar.gz
system_core-241bcf05e0e394bbf2681f359f52646dd6c707f6.tar.bz2
Fix file descriptor leak when opening invalid archives.
Also add -Wunreachable-code to the set of compiler flags, otherwise noreturn becomes considerably less useful. bug: https://code.google.com/p/android/issues/detail?id=171099 Change-Id: I9a95d45633c731c7046d4e4a39844d9cebfd1718
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r--fastboot/fastboot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h
index 1786e49..481c501 100644
--- a/fastboot/fastboot.h
+++ b/fastboot/fastboot.h
@@ -69,7 +69,7 @@ int fb_queue_is_empty(void);
/* util stuff */
double now();
char *mkmsg(const char *fmt, ...);
-void die(const char *fmt, ...);
+__attribute__((__noreturn__)) void die(const char *fmt, ...);
void get_my_path(char *path);