[Parallel_libs-commits] [PATCH] D27941: [Axccel] Remove -Wno-missing-braces in build
Jason Henline via Phabricator via Parallel_libs-commits
parallel_libs-commits at lists.llvm.org
Mon Dec 19 13:44:31 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL290137: [Axccel] Remove -Wno-missing-braces in build (authored by jhen).
Changed prior to commit:
https://reviews.llvm.org/D27941?vs=81996&id=82000#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27941
Files:
parallel-libs/trunk/acxxel/CMakeLists.txt
parallel-libs/trunk/acxxel/examples/opencl_example.cpp
parallel-libs/trunk/acxxel/tests/span_test.cpp
Index: parallel-libs/trunk/acxxel/tests/span_test.cpp
===================================================================
--- parallel-libs/trunk/acxxel/tests/span_test.cpp
+++ parallel-libs/trunk/acxxel/tests/span_test.cpp
@@ -79,12 +79,12 @@
}
TEST(Span, StdArrayConstruction) {
- std::array<int, 3> Array{0, 1, 2};
+ std::array<int, 3> Array{{0, 1, 2}};
acxxel::Span<int> Span(Array);
EXPECT_EQ(Span.data(), Array.data());
EXPECT_EQ(static_cast<size_t>(Span.size()), Array.size());
- std::array<const int, 3> ConstArray{0, 1, 2};
+ std::array<const int, 3> ConstArray{{0, 1, 2}};
acxxel::Span<const int> ConstSpan(ConstArray);
EXPECT_EQ(ConstSpan.data(), ConstArray.data());
EXPECT_EQ(static_cast<size_t>(ConstSpan.size()), ConstArray.size());
Index: parallel-libs/trunk/acxxel/examples/opencl_example.cpp
===================================================================
--- parallel-libs/trunk/acxxel/examples/opencl_example.cpp
+++ parallel-libs/trunk/acxxel/examples/opencl_example.cpp
@@ -57,9 +57,9 @@
int main() {
float A = 2.f;
- std::array<float, 3> X = {0.f, 1.f, 2.f};
- std::array<float, 3> Y = {3.f, 4.f, 5.f};
- std::array<float, 3> Expected = {3.f, 6.f, 9.f};
+ std::array<float, 3> X{{0.f, 1.f, 2.f}};
+ std::array<float, 3> Y{{3.f, 4.f, 5.f}};
+ std::array<float, 3> Expected{{3.f, 6.f, 9.f}};
saxpy(A, X, Y);
for (int I = 0; I < 3; ++I)
if (X[I] != Expected[I]) {
Index: parallel-libs/trunk/acxxel/CMakeLists.txt
===================================================================
--- parallel-libs/trunk/acxxel/CMakeLists.txt
+++ parallel-libs/trunk/acxxel/CMakeLists.txt
@@ -35,7 +35,7 @@
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add warning flags.
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-missing-braces")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
add_library(
acxxel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27941.82000.patch
Type: text/x-patch
Size: 1890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/parallel_libs-commits/attachments/20161219/b465028e/attachment.bin>
More information about the Parallel_libs-commits
mailing list