Detect if the installed gcc version supports the warn_unused_result attribute.

Reported by mvanbaak via IRC -dev.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-06-19 17:55:34 +00:00
parent 5791b6680d
commit 4522c60ec8
6 changed files with 1073 additions and 22 deletions

View File

@@ -59,4 +59,10 @@
#define attribute_sentinel
#endif
#ifdef HAVE_ATTRIBUTE_warn_unused_result
#define attribute_warn_unused_result __attribute__((warn_unused_result))
#else
#define attribute_warn_unused_result
#endif
#endif /* _ASTERISK_COMPILER_H */