Change the order of function attributes in printf.h
commitca4dc7465917beeb37af32891d4c867b5ac16883
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Thu, 23 Mar 2017 18:45:00 +0000 (23 15:45 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Thu, 23 Mar 2017 18:48:59 +0000 (23 15:48 -0300)
tree62b5c44f4eb26c890054de150b92d22cb6690b3f
parentfb82116f24454e450f771a41f18cbdacfae1229d
Change the order of function attributes in printf.h

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