fix gcc9 warning on srcn depthwise_conv accepted/tizen/unified/20200107.043354 accepted/tizen/unified/20200107.043440 submit/tizen/20200106.082006 submit/tizen/20200107.012239
authorChunseok Lee <chunseok.lee@samsung.com>
Mon, 6 Jan 2020 08:05:14 +0000 (17:05 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Mon, 6 Jan 2020 08:19:30 +0000 (17:19 +0900)
Change-Id: If703be61e87662b6967044374b3b981697a07abd
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
compute/ncnn/src/srcn/depthwise_conv.cc

index 74d7993..cd092d5 100644 (file)
@@ -269,7 +269,11 @@ static void depthwise_conv3x3S1_nopad(const convMat_t &in_mat, convMat_t &out_ma
       in_ptr2 += 2;
     }
   }
-
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
 #endif // !__aarch64__
 }
 
@@ -925,7 +929,12 @@ static void depthwise_conv3x3S1_padding(const convMat_t &in_mat, convMat_t &out_
       }
     }
   }
-#endif // !__aarch64__
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
+#endif // __aarch64__
 }
 
 static void depthwise_conv3x3S2_nopad(const convMat_t &in_mat, convMat_t &out_mat,
@@ -1050,7 +1059,13 @@ static void depthwise_conv3x3S2_nopad(const convMat_t &in_mat, convMat_t &out_ma
       in_ptr2 += tailstep;
     }
   }
-#endif // !__aarch64__
+
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
+#endif // __aarch64__
 }
 
 static void depthwise_conv3x3S2_padding00(const convMat_t &in_mat, convMat_t &out_mat,
@@ -1252,6 +1267,11 @@ static void depthwise_conv3x3S2_padding00(const convMat_t &in_mat, convMat_t &ou
       }
     }
   }
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
 #endif // !__aarch64__
 }
 
@@ -1522,7 +1542,13 @@ static void depthwise_conv3x3S2_padding01(const convMat_t &in_mat, convMat_t &ou
       }
     }
   }
-#endif // !__aarch64__
+
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
+#endif // __aarch64__
 }
 
 static void depthwise_conv3x3S2_padding10(const convMat_t &in_mat, convMat_t &out_mat,
@@ -1797,7 +1823,13 @@ static void depthwise_conv3x3S2_padding10(const convMat_t &in_mat, convMat_t &ou
       }
     }
   }
-#endif // !__aarch64__
+
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
+#endif // __aarch64__
 }
 
 static void depthwise_conv3x3S2_padding11(const convMat_t &in_mat, convMat_t &out_mat,
@@ -2169,7 +2201,12 @@ static void depthwise_conv3x3S2_padding11(const convMat_t &in_mat, convMat_t &ou
       }
     }
   }
-#endif // !__aarch64__
+#else  //  __aarch64__
+  (void)in_mat;
+  (void)out_mat;
+  (void)kernel;
+  (void)bias;
+#endif // __aarch64__
 }
 
 static void depthwise_conv_colmajor(const convMat_t &in_mat, convMat_t &out_mat,