[PATCH] D73224: [hip] Remove `-Werror=format-nonliteral`

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 08:10:31 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG49f7bc9e1e50: [hip] Remove `-Werror=format-nonliteral` (authored by hliao).

Changed prior to commit:
  https://reviews.llvm.org/D73224?vs=239683&id=239910#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73224/new/

https://reviews.llvm.org/D73224

Files:
  clang/lib/Driver/ToolChains/HIP.cpp
  clang/test/Driver/hip-printf.hip


Index: clang/test/Driver/hip-printf.hip
===================================================================
--- clang/test/Driver/hip-printf.hip
+++ clang/test/Driver/hip-printf.hip
@@ -6,4 +6,4 @@
 // RUN:   %s 2>&1 | FileCheck %s
 
 // CHECK: [[CLANG:".*clang.*"]] "-cc1"
-// CHECK-SAME: "-Werror=format-nonliteral"
+// CHECK-NOT: "-Werror=format-nonliteral"
Index: clang/lib/Driver/ToolChains/HIP.cpp
===================================================================
--- clang/lib/Driver/ToolChains/HIP.cpp
+++ clang/lib/Driver/ToolChains/HIP.cpp
@@ -425,7 +425,6 @@
 
 void HIPToolChain::addClangWarningOptions(ArgStringList &CC1Args) const {
   HostTC.addClangWarningOptions(CC1Args);
-  CC1Args.push_back("-Werror=format-nonliteral");
 }
 
 ToolChain::CXXStdlibType


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73224.239910.patch
Type: text/x-patch
Size: 774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200123/c9689d56/attachment-0001.bin>


More information about the cfe-commits mailing list