Libmv: Solve strict compiler warnings in stubs
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 14 Jan 2016 10:56:05 +0000 (15:56 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 14 Jan 2016 10:56:05 +0000 (15:56 +0500)
intern/libmv/intern/stub.cc

index 5d667baa880221e438e6cfb49f1989800f706b23..ad6482037649f5c00cbe05efb28aa61cf81324c1 100644 (file)
@@ -257,7 +257,8 @@ void libmv_cameraIntrinsicsUndistortByte(
     const libmv_CameraIntrinsics * /*libmv_intrinsics*/,
     const unsigned char *source_image,
     int width, int height,
-    float overscan, int channels,
+    float /*overscan*/,
+    int channels,
     unsigned char *destination_image) {
   memcpy(destination_image, source_image,
          channels * width * height * sizeof(unsigned char));
@@ -268,7 +269,7 @@ void libmv_cameraIntrinsicsUndistortFloat(
     const float* source_image,
     int width,
     int height,
-    float overscan,
+    float /*overscan*/,
     int channels,
     float* destination_image) {
   memcpy(destination_image, source_image,
@@ -280,7 +281,7 @@ void libmv_cameraIntrinsicsDistortByte(
     const unsigned char *source_image,
     int width,
     int height,
-    float overscan,
+    float /*overscan*/,
     int channels,
     unsigned char *destination_image) {
   memcpy(destination_image, source_image,
@@ -292,7 +293,7 @@ void libmv_cameraIntrinsicsDistortFloat(
     float* source_image,
     int width,
     int height,
-    float overscan,
+    float /*overscan*/,
     int channels,
     float* destination_image) {
   memcpy(destination_image, source_image,
@@ -327,9 +328,9 @@ void libmv_cameraIntrinsicsInvert(
   *y1 = (y - principal_y) / focal_length;
 }
 
-void libmv_homography2DFromCorrespondencesEuc(/* const */ double (*x1)[2],
-                                              /* const */ double (*x2)[2],
-                                              int num_points,
+void libmv_homography2DFromCorrespondencesEuc(/* const */ double (* /*x1*/)[2],
+                                              /* const */ double (* /*x2*/)[2],
+                                              int /*num_points*/,
                                               double H[3][3]) {
   memset(H, 0, sizeof(double[3][3]));
   H[0][0] = 1.0f;