Skip to content

Commit 3a8311f

Browse files
authored
Fix compile error for gcc 6.3 (#6112)
1 parent 6dc5b34 commit 3a8311f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/flags.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ set(COMMON_FLAGS
111111
-Wno-error=sign-compare
112112
-Wno-error=unused-local-typedefs
113113
-Wno-error=parentheses-equality # Warnings in pybind11
114+
-Wno-error=ignored-attributes # Warnings in Eigen, gcc 6.3
115+
-Wno-error=terminate # Warning in PADDLE_ENFORCE
114116
)
115117

116118
set(GPU_COMMON_FLAGS

0 commit comments

Comments
 (0)