]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow detecting unused parameters using clang 5851/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Feb 2018 16:46:48 +0000 (17:46 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Feb 2018 16:46:48 +0000 (17:46 +0100)
cmake/setup_compiler_flags_gnu.cmake
include/deal.II/differentiation/ad/ad_number_traits.h
include/deal.II/lac/utilities.h

index 53f22908727fddaaff35be1b2ce8f9cf0192f5e4..4302124fc5e1d0ad49a1683666050bf66d26ad1f 100644 (file)
@@ -93,8 +93,6 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   #
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unsupported-friend")
 
-  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-parameter")
-
   #
   # Disable a diagnostic that warns about potentially uninstantiated static
   # members. This leads to a ton of false positives.
index ec0b74a37a359617ab121ba12bc2b85150a30824..564523cae5b2ae141dfe5610c235738320d1d7f6 100644 (file)
@@ -1022,8 +1022,8 @@ namespace Differentiation
       >::type>
     {
       static ScalarType
-      get_directional_derivative(const ScalarType      &x,
-                                 const unsigned int  direction)
+      get_directional_derivative(const ScalarType   &/*x*/,
+                                 const unsigned int  /*direction*/)
       {
         // If the AD drivers are correctly implemented then we should not get here.
         // This is essentially a dummy for when the ADNumberTypeCode for the original
index 1b0496e652ece5a26fa463522bfb8c7cf3dba47e..683ee4e9a5dad241c34bb47593d7e594944b9715 100644 (file)
@@ -211,8 +211,8 @@ namespace Utilities
   {
 
     template<typename NumberType>
-    std::array<std::complex<NumberType>,3> hyperbolic_rotation(const std::complex<NumberType> &f,
-                                                               const std::complex<NumberType> &g)
+    std::array<std::complex<NumberType>,3> hyperbolic_rotation(const std::complex<NumberType> &/*f*/,
+                                                               const std::complex<NumberType> &/*g*/)
     {
       AssertThrow(false, ExcNotImplemented());
       std::array<NumberType,3> res;
@@ -244,8 +244,8 @@ namespace Utilities
 
 
     template<typename NumberType>
-    std::array<std::complex<NumberType>,3> givens_rotation(const std::complex<NumberType> &f,
-                                                           const std::complex<NumberType> &g)
+    std::array<std::complex<NumberType>,3> givens_rotation(const std::complex<NumberType> &/*f*/,
+                                                           const std::complex<NumberType> &/*g*/)
     {
       AssertThrow(false, ExcNotImplemented());
       std::array<NumberType,3> res;

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.