[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)
llvm-svn: 338886

clang/include/clang/Basic/Attr.td

index 0fffce4..191bfd5 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> {