mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user