From patchwork Wed Mar 22 20:39:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 19705 Received: (qmail 101557 invoked by alias); 22 Mar 2017 20:40:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 101435 invoked by uid 89); 22 Mar 2017 20:40:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-languages-length:1397 X-HELO: mx0a-001b2d01.pphosted.com From: "Tulio Magno Quites Machado Filho" To: libc-alpha@sourceware.org Subject: [PATCH] Change the order of function attributes in printf.h Date: Wed, 22 Mar 2017 17:39:42 -0300 X-TM-AS-MML: disable x-cbid: 17032220-0028-0000-0000-000001A37FB9 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17032220-0029-0000-0000-000014A2BB09 Message-Id: <1490215182-14217-1-git-send-email-tuliom@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-03-22_17:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703220178 According to ISO C++, exception specification must appear before of the attribute specifier when declaring functions. This patch fix issues reported by stdio-common/check-installed-headers-cxx. 2017-03-22 Tulio Magno Quites Machado Filho * stdio-common/printf.h (register_printf_modifier): Change the order of __wur and __THROW. (register_printf_type) Likewise. --- stdio-common/printf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdio-common/printf.h b/stdio-common/printf.h index bf5ccd4..5d82e8d 100644 --- a/stdio-common/printf.h +++ b/stdio-common/printf.h @@ -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