Skip to content

Commit 74693da

Browse files
authored
Update CppInterOp.cpp
1 parent 75373db commit 74693da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,9 +2828,9 @@ namespace Cpp {
28282828
#define DEBUG_TYPE "exec"
28292829

28302830
std::array<char, 256> buffer;
2831-
#pragma GCC diagnostic ignored "-Werror=ignored-attributes"
2831+
#pragma GCC diagnostic ignored "-Wignored-attributes"
28322832
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
2833-
#pragma GCC diagnostic error "-Werror=ignored-attributes"
2833+
#pragma GCC diagnostic pop
28342834
LLVM_DEBUG(dbgs() << "Executing command '" << cmd << "'\n");
28352835

28362836
if (!pipe) {
@@ -3439,9 +3439,9 @@ namespace Cpp {
34393439
}
34403440

34413441
class StreamCaptureInfo {
3442-
#pragma GCC diagnostic ignored "-Werror=ignored-attributes"
3442+
#pragma GCC diagnostic ignored "-Wignored-attributes"
34433443
std::unique_ptr<FILE, decltype(std::fclose)*> m_TempFile;
3444-
#pragma GCC diagnostic error "-Werror=ignored-attributes"
3444+
#pragma GCC diagnostic pop
34453445
int m_FD = -1;
34463446
int m_DupFD = -1;
34473447

0 commit comments

Comments
 (0)