]> granicus.if.org Git - clang/commitdiff
[NFC] Fix unused expression warning introduced in r338884
authorErich Keane <erich.keane@intel.com>
Fri, 3 Aug 2018 13:23:04 +0000 (13:23 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 3 Aug 2018 13:23:04 +0000 (13:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338886 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td

index 0fffce42ac6d77a3c7866ce423f53f200c922118..191bfd50f2139dc65491ce7cefeff0a485099330 100644 (file)
@@ -145,8 +145,9 @@ def HasFunctionProto : SubsetSubject<DeclBase,
 // function. Accepted as a function type attribute on the type of such a
 // member function.
 // FIXME: This does not actually ever match currently.
-def ImplicitObjectParameter : SubsetSubject<Function, [{S, false}],
-                                            "implicit object parameters">;
+def ImplicitObjectParameter
+    : SubsetSubject<Function, [ {static_cast<void>(S), false} ],
+                    "implicit object parameters">;
 
 // A single argument to an attribute
 class Argument<string name, bit optional, bit fake = 0> {