Skip to content

Commit 11cd90d

Browse files
committed
Add -wd1011 flag to Icc workflow
1 parent 81cfec2 commit 11cd90d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/intel.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ jobs:
1717
run: |
1818
sudo .github/workflows/dependencies/install_icc
1919
- name: Build
20-
env: {CXXFLAGS: -Werror}
20+
# Due to compiler bugs in Intel compiler, we need to disable warning 1011
21+
# (missing return value), otherwise `if constexpr` functions
22+
# don't compile.
23+
# See https://community.intel.com/t5/Intel-C-Compiler/quot-if-constexpr-quot-and-quot-missing-return-statement-quot-in/td-p/1154551
24+
# Using a local pragma does not work due to the reasons stated there.
25+
env: {CXXFLAGS: -Werror -wd1011}
2126
run: |
2227
set +e; source /opt/intel/oneapi/setvars.sh; set -e
2328
share/openPMD/download_samples.sh build

0 commit comments

Comments
 (0)