Change the order of function attributes in printf.h
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Thu, 23 Mar 2017 18:45:00 +0000 (15:45 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Thu, 23 Mar 2017 18:48:59 +0000 (15:48 -0300)
ISO C++ section 8.3.5 [dcl.fct] requires exception specifications
to appear before attribute specifiers in function declarations.

This patch fixes issues reported by stdio-common/check-installed-headers-cxx.

* stdio-common/printf.h (register_printf_modifier): Change the
order of __wur and __THROW.
(register_printf_type): Likewise.

ChangeLog
stdio-common/printf.h

index 5769bf5..86599d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+       * stdio-common/printf.h (register_printf_modifier): Change the
+       order of __wur and __THROW.
+       (register_printf_type): Likewise.
+
 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
 
        * string/test-string.h (TEST_FUNCTION): Use test_main instead of
index bf5ccd4..5d82e8d 100644 (file)
@@ -111,13 +111,13 @@ extern int register_printf_function (int __spec, printf_function __func,
    it returns a positive value representing the bit set in the USER
    field in 'struct printf_info'.  */
 
-extern int register_printf_modifier (const wchar_t *__str) __wur __THROW;
+extern int register_printf_modifier (const wchar_t *__str) __THROW __wur;
 
 
 /* Register variable argument handler for user type.  The return value
    is to be used in ARGINFO functions to signal the use of the
    type.  */
-extern int register_printf_type (printf_va_arg_function __fct) __wur __THROW;
+extern int register_printf_type (printf_va_arg_function __fct) __THROW __wur;
 
 
 /* Parse FMT, and fill in N elements of ARGTYPES with the