Skip to content

Commit

Permalink
Restore warning suppression on clang.
Browse files Browse the repository at this point in the history
It appears the warning happens for assignment as well as initialisation.
Refs #11056
  • Loading branch information
martyngigg committed Jan 7, 2016
1 parent 970f480 commit 418868e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Framework/MDAlgorithms/test/LoadSQW2Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ class LoadSQW2Test : public CxxTest::TestSuite {
}
}

#ifdef __clang__
// The missing braces warning is a false positive -
// https://llvm.org/bugs/show_bug.cgi?id=21629
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmissing-braces"
#endif
DimensionProperties getExpectedDimProperties(std::string outputFrame) {
DimensionProperties expected;
expected.ids = {"qx", "qy", "qz", "en"};
Expand Down Expand Up @@ -208,6 +214,9 @@ class LoadSQW2Test : public CxxTest::TestSuite {
}
return expected;
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif

void checkExperimentInfoAsExpected(const IMDEventWorkspace &outputWS) {
TS_ASSERT_EQUALS(2, outputWS.getNumExperimentInfo());
Expand Down

0 comments on commit 418868e

Please sign in to comment.