[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] [PATCH] Use "noreturn" attribute in the function declaration too

From: Vadim Zeitlin
Subject: [lmi] [PATCH] Use "noreturn" attribute in the function declaration too
Date: Wed, 15 Mar 2017 01:12:24 +0100


 As previously mentioned, my reading of the Standard seems to indicate that
not using the "noreturn" attribute in the function declaration, but using
it in the function definition makes the program ill-formed. Whether I'm
correct or not, it definitely makes it uncompilable with MSVC which gives
many errors similar to the following one:

any_member.hpp(572): error C2381: 
redefinition; '__declspec(noreturn)' or '[[noreturn]]' differs (compiling 
source file gpt_input.cpp)

 The attached patch simply adds "[[noreturn]]" to the function declaration,
which seems like the right fix to me. Could you please apply it?

 Thanks in advance,

Attachment: use-noreturn-attribute-in-the-function-declaration.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]