commit | f6e9ffbc734c7100914e8164f735317a85151033 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Mon May 11 16:59:46 2015 +0100 |
committer | Elliott Hughes <enh@google.com> | Wed Jun 03 12:16:43 2015 -0700 |
tree | 57baea9ff41e88336cfd8099273666706cc87a7a | |
parent | ac462d93337e6ca5c29d3527abb95e363347cf78 [diff] [blame] |
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 (cherrypick of 241bcf05e0e394bbf2681f359f52646dd6c707f6.)
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 @@ /* 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);