summaryrefslogtreecommitdiff
path: root/include/asterisk/logger.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-06-19 17:55:34 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-06-19 17:55:34 +0000
commit4522c60ec8ad8aaba86db803f9afd74b6851b346 (patch)
treef91de7248a352ef848d455669b556c6580848a79 /include/asterisk/logger.h
parent5791b6680ded584a4d1f5b0f370446630a8eb77e (diff)
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
Diffstat (limited to 'include/asterisk/logger.h')
-rw-r--r--include/asterisk/logger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
index cb7818091..45407e81d 100644
--- a/include/asterisk/logger.h
+++ b/include/asterisk/logger.h
@@ -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);