]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Compile MSVC testers with warnings as errors 10367/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 25 May 2020 20:18:10 +0000 (16:18 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 26 May 2020 19:27:04 +0000 (15:27 -0400)
.github/workflows/windows.yml
cmake/checks/check_01_cxx_features.cmake
contrib/ci/appveyor.yml
include/deal.II/matrix_free/evaluation_kernels.h

index c3265c95f72d9268c7e7f1ef835ea97b2f1cdd79..b7a59f4f6672d42f1da262c29b79d2fe5304688c 100644 (file)
@@ -8,6 +8,7 @@ jobs:
     name: Windows Serial
     runs-on: ${{ matrix.os }}
     strategy:
+      fail-fast: false
       matrix:
         os: [windows-2019, windows-2016]
 
@@ -23,7 +24,7 @@ jobs:
         mkdir build
         mkdir c:/project
         cd build
-        cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=c:/project -T host=x64 ..
+        cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=c:/project -DDEAL_II_CXX_FLAGS="-WX" -T host=x64 ..
     - name: archive logs
       uses: actions/upload-artifact@v1
       with:
index 43e08a8500e35e7bd787e5f0ae1b3dc7706a19bd..aca3421b234c7ee004c2c4054d755b950842e89b 100644 (file)
@@ -261,7 +261,7 @@ MACRO(_test_cxx14_support)
     int main()
     {
       std::condition_variable c;
-      p[0];
+      p[0] = 1;
       c.notify_all();
 
      // type traits functionality
index 58b6a0781b7f51be5277df5fe82d62a665c4fd60..b141d4d7915f1ae36b28405e1a2d4962d2311d63 100644 (file)
@@ -5,7 +5,7 @@ build_script:
 - cmd: >-
     mkdir build &&
     cd build &&
-    cmake c:\projects\source -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX="c:\projects\dealii" &&
+    cmake c:\projects\source -DCMAKE_BUILD_TYPE=Debug -DDEAL_II_CXX_FLAGS="-WX" -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX="c:\projects\dealii" &&
     cmake --build . --target install -- -m
 
 for:
index e4f27720e16a166d9fee940bb550c979012c4702..edd77e77a871880b9f04dcb976a7184616297cd1 100644 (file)
@@ -1907,7 +1907,7 @@ namespace internal
 
       VectorizedArrayType
                            temp_data[static_dofs_per_face < stack_array_size_threshold ?
-                    n_components * 2 * static_dofs_per_face :
+                    n_components * 2ull * static_dofs_per_face :
                     1];
       VectorizedArrayType *temp1;
       if (static_dofs_per_face < stack_array_size_threshold)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.