Skip to content

Commit 75373db

Browse files
authored
Disable gcc warning
1 parent 9c6a151 commit 75373db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Interpreter/CppInterOp.cpp

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

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

28342836
if (!pipe) {
@@ -3437,7 +3439,9 @@ namespace Cpp {
34373439
}
34383440

34393441
class StreamCaptureInfo {
3442+
#pragma GCC diagnostic ignored "-Werror=ignored-attributes"
34403443
std::unique_ptr<FILE, decltype(std::fclose)*> m_TempFile;
3444+
#pragma GCC diagnostic error "-Werror=ignored-attributes"
34413445
int m_FD = -1;
34423446
int m_DupFD = -1;
34433447

0 commit comments

Comments
 (0)