未验证 提交 bc247120 编写于 作者: E Evgeny Proydakov 提交者: GitHub

Fixed compile warnings for gcc linux build. [-Wunused-parameter] ...

Fixed compile warnings for gcc linux build. [-Wunused-parameter]  [-Wunused-but-set-variable] (#2198)
上级 9be3f074
...@@ -163,6 +163,7 @@ int ncnn_option_get_use_vulkan_compute(ncnn_option_t opt) ...@@ -163,6 +163,7 @@ int ncnn_option_get_use_vulkan_compute(ncnn_option_t opt)
#if NCNN_VULKAN #if NCNN_VULKAN
return ((Option*)opt)->use_vulkan_compute; return ((Option*)opt)->use_vulkan_compute;
#else #else
(void)opt;
return 0; return 0;
#endif #endif
} }
......
...@@ -408,7 +408,6 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co ...@@ -408,7 +408,6 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co
{ {
int w = bottom_blob.w; int w = bottom_blob.w;
int h = bottom_blob.h; int h = bottom_blob.h;
int channels = bottom_blob.c;
int outh = output_height; int outh = output_height;
int outw = output_width; int outw = output_width;
...@@ -416,7 +415,6 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co ...@@ -416,7 +415,6 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co
{ {
h = 1; h = 1;
w = 1; w = 1;
channels = bottom_blob.w;
} }
if (outh == 0 || outw == 0) if (outh == 0 || outw == 0)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册