From 644e03551ec0faa50ea4b48e5b875b8ac891fbd9 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 18 Sep 2015 09:48:33 +0200 Subject: [PATCH] I think that MSVC wants the attrib before the symbol name --- include/surf/surfxml_parse.h | 2 +- include/xbt/log.h | 2 +- include/xbt/sysdep.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/surf/surfxml_parse.h b/include/surf/surfxml_parse.h index a5b6696dbd..97dd7694d1 100644 --- a/include/surf/surfxml_parse.h +++ b/include/surf/surfxml_parse.h @@ -26,7 +26,7 @@ XBT_PUBLIC(void) surf_parse_close(void); XBT_PUBLIC(void) surf_parse_init_callbacks(void); XBT_PUBLIC(void) surf_parse_reset_callbacks(void); XBT_PUBLIC(void) surf_parse_free_callbacks(void); -XBT_PUBLIC(void) surf_parse_error(const char *msg,...) XBT_ATTRIB_PRINTF(1,2) XBT_ATTRIB_NORETURN; +XBT_PUBLIC(void) XBT_ATTRIB_NORETURN surf_parse_error(const char *msg,...) XBT_ATTRIB_PRINTF(1,2); XBT_PUBLIC(void) surf_parse_warn(const char *msg,...) XBT_ATTRIB_PRINTF(1,2); XBT_PUBLIC(double) surf_parse_get_double(const char *string); XBT_PUBLIC(int) surf_parse_get_int(const char *string); diff --git a/include/xbt/log.h b/include/xbt/log.h index 85f59514ad..b53652ee74 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -191,7 +191,7 @@ typedef enum { # define XBT_LOG_DEFAULT_CATEGORY(cname) #else # define XBT_LOG_DEFAULT_CATEGORY(cname) \ - static xbt_log_category_t _XBT_LOGV(default) _XBT_GNUC_UNUSED = &_XBT_LOGV(cname) + static xbt_log_category_t _XBT_LOGV(default) XBT_ATTRIB_UNUSED = &_XBT_LOGV(cname) #endif /** diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 5f3caff3c1..4e407abb99 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -35,7 +35,7 @@ SG_BEGIN_DECL() * @{ */ /** @brief Kill the program in silence */ -XBT_PUBLIC(void) xbt_abort(void) XBT_ATTRIB_NORETURN; +XBT_PUBLIC(void) XBT_ATTRIB_NORETURN xbt_abort(void); /** * @brief Kill the program with an error message -- 2.20.1