File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 33int main ()
44{
55 std::string config = R"(
6- iteration_encoding = "variable_based"
7-
8- [json]
9- mode = "template"
6+ {
7+ "iteration_encoding": "variable_based",
8+ "json": {
9+ "mode": "template"
10+ }
11+ }
1012)" ;
1113
1214 openPMD::Series writeTemplate (
Original file line number Diff line number Diff line change @@ -72,7 +72,20 @@ namespace
7272 {
7373 return T{};
7474 }
75+ #if defined(__INTEL_COMPILER)
76+ /*
77+ * ICPC has trouble with if constexpr, thinking that return statements are
78+ * missing afterwards. Deactivate the warning.
79+ * Note that putting a statement here will not help to fix this since it will
80+ * then complain about unreachable code.
81+ * https://community.intel.com/t5/Intel-C-Compiler/quot-if-constexpr-quot-and-quot-missing-return-statement-quot-in/td-p/1154551
82+ */
83+ #pragma warning(disable : 1011)
84+ }
85+ #pragma warning(default : 1011)
86+ #else
7587 }
88+ #endif
7689
7790 static constexpr char const *errorMsg = " JSON default value" ;
7891 };
You can’t perform that action at this time.
0 commit comments