r192946 - False. GCC does not accept [[gnu::warn_unused]], not to be confused with [[gnu::warn_unused_result]] which does exist.
Nick Lewycky
nicholas at mxc.ca
Thu Oct 17 22:00:41 PDT 2013
Author: nicholas
Date: Fri Oct 18 00:00:41 2013
New Revision: 192946
URL: http://llvm.org/viewvc/llvm-project?rev=192946&view=rev
Log:
False. GCC does not accept [[gnu::warn_unused]], not to be confused with [[gnu::warn_unused_result]] which does exist.
Modified:
cfe/trunk/include/clang/Basic/Attr.td
Modified: cfe/trunk/include/clang/Basic/Attr.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=192946&r1=192945&r2=192946&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attr.td (original)
+++ cfe/trunk/include/clang/Basic/Attr.td Fri Oct 18 00:00:41 2013
@@ -775,7 +775,7 @@ def VecReturn : InheritableAttr {
}
def WarnUnused : InheritableAttr {
- let Spellings = [GNU<"warn_unused">, CXX11<"gnu", "warn_unused">];
+ let Spellings = [GNU<"warn_unused">];
let Subjects = [Record];
}
More information about the cfe-commits
mailing list