diff --git a/modules/flann/include/opencv2/flann/autotuned_index.h b/modules/flann/include/opencv2/flann/autotuned_index.h
index e82d0535681fb92f52436bd26104426b4c3401d7..43a7bcd92090a61a2ea70e30c552ef510de554b2 100644
--- a/modules/flann/include/opencv2/flann/autotuned_index.h
+++ b/modules/flann/include/opencv2/flann/autotuned_index.h
@@ -97,7 +97,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }
 
diff --git a/modules/flann/include/opencv2/flann/composite_index.h b/modules/flann/include/opencv2/flann/composite_index.h
index 93720074678a2c7e30edabf6816e48ef5b9b3c17..02b7bc1f319355fe955b488aedc9224223516ba1 100644
--- a/modules/flann/include/opencv2/flann/composite_index.h
+++ b/modules/flann/include/opencv2/flann/composite_index.h
@@ -133,7 +133,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }
 
diff --git a/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h b/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h
index dddd98ad529f1615a1d4f11a09f45afa31292268..59423ae0cd312d524ef22a4fd70d8aaa1accd1ba 100644
--- a/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h
+++ b/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h
@@ -382,7 +382,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }
 
diff --git a/modules/flann/include/opencv2/flann/kdtree_index.h b/modules/flann/include/opencv2/flann/kdtree_index.h
index 8c0024a4dea16416ce7ed141dfc75e3abbd2fa0f..1b8af4a59738f738c4959329607773297bba1c79 100644
--- a/modules/flann/include/opencv2/flann/kdtree_index.h
+++ b/modules/flann/include/opencv2/flann/kdtree_index.h
@@ -120,7 +120,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }
 
diff --git a/modules/flann/include/opencv2/flann/kdtree_single_index.h b/modules/flann/include/opencv2/flann/kdtree_single_index.h
index 2b507e16b7d609071de3522179d8fa2be61c5e1c..252fc4c5e13c55c354e4441cb83c538ccf88a004 100644
--- a/modules/flann/include/opencv2/flann/kdtree_single_index.h
+++ b/modules/flann/include/opencv2/flann/kdtree_single_index.h
@@ -113,7 +113,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }
 
diff --git a/modules/flann/include/opencv2/flann/kmeans_index.h b/modules/flann/include/opencv2/flann/kmeans_index.h
index f95e2fcabd7dacff5b4d934a0ed60fb80da60984..9c0f4e2df8262bba61d49d37bf48c97776371271 100644
--- a/modules/flann/include/opencv2/flann/kmeans_index.h
+++ b/modules/flann/include/opencv2/flann/kmeans_index.h
@@ -365,7 +365,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }
 
diff --git a/modules/flann/include/opencv2/flann/linear_index.h b/modules/flann/include/opencv2/flann/linear_index.h
index f54e3dee8649b7f04b80e9a3f27d33aa834cfc2f..0ea084a5f52aa08ab5f940e28a18567934c39511 100644
--- a/modules/flann/include/opencv2/flann/linear_index.h
+++ b/modules/flann/include/opencv2/flann/linear_index.h
@@ -88,7 +88,7 @@ public:
     /**
      * Dummy implementation for other algorithms of addable indexes after that.
      */
-    void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
+    void addIndex(const Matrix<ElementType>& /*wholeData*/, const Matrix<ElementType>& /*additionalData*/)
     {
     }