diff --git a/modules/flann/include/opencv2/flann/autotuned_index.h b/modules/flann/include/opencv2/flann/autotuned_index.h
index e82d05356..43a7bcd92 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 937200746..02b7bc1f3 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 dddd98ad5..59423ae0c 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 8c0024a4d..1b8af4a59 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 2b507e16b..252fc4c5e 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 f95e2fcab..9c0f4e2df 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 f54e3dee8..0ea084a5f 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*/)
     {
     }