mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 12:28:27 +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:
@@ -83,8 +83,8 @@ void __ast_verbose(const char *file, int line, const char *func, const char *fmt
|
||||
void ast_child_verbose(int level, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
int ast_register_verbose(void (*verboser)(const char *string)) __attribute__((warn_unused_result));
|
||||
int ast_unregister_verbose(void (*verboser)(const char *string)) __attribute__((warn_unused_result));
|
||||
int ast_register_verbose(void (*verboser)(const char *string)) attribute_warn_unused_result;
|
||||
int ast_unregister_verbose(void (*verboser)(const char *string)) attribute_warn_unused_result;
|
||||
|
||||
void ast_console_puts(const char *string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user