]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a warning about an unused constructor argument. 4388/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 14 May 2017 02:38:05 +0000 (20:38 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 14 May 2017 02:38:05 +0000 (20:38 -0600)
Annoyingly, my compiler warns about =default constructors whenever we name constructor
arguments. It says they are unused -- which is patently wrong: the argument is used
just fine, we just never explicitly reference the *name* of the argument. Either way,
work around this.

include/deal.II/lac/block_vector_base.h

index 26ba82b8218a7161e955deebfd7a2a9d02482650..40f50727972a5e63d53c05913445a1b00dab50bf 100644 (file)
@@ -556,7 +556,7 @@ public:
   /**
    * Copy constructor.
    */
-  BlockVectorBase (const BlockVectorBase &V) = default;
+  BlockVectorBase (const BlockVectorBase &/*V*/) = default;
 
   /**
    * Move constructor. Each block of the argument vector is moved into the current

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.