mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Introduce NORETURN_ATTR wrapper for __attribute__((noreturn)), using this and a bit further cleanup in main gets rid of a warning when compiling for android.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27788 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
70ebe46d74
commit
0e2286f226
19 changed files with 71 additions and 35 deletions
|
@ -43,4 +43,11 @@
|
|||
#endif
|
||||
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 3 || \
|
||||
(__GNUC__ >= 2 && __GNUC_MINOR__ >= 5))
|
||||
#define NORETURN_ATTR __attribute__((noreturn))
|
||||
#else
|
||||
#define NORETURN_ATTR
|
||||
#endif
|
||||
|
||||
#endif /* _GCC_EXTENSIONS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue