Browse Source

Fixed compile warnings for gcc linux build. [-Wunused-parameter] [-Wunused-but-set-variable] (#2198)

tags/20201208
Evgeny Proydakov GitHub 5 years ago
parent
commit
bc2471208f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions
  1. +1
    -0
      src/c_api.cpp
  2. +0
    -2
      src/layer/interp.cpp

+ 1
- 0
src/c_api.cpp View File

@@ -163,6 +163,7 @@ int ncnn_option_get_use_vulkan_compute(ncnn_option_t opt)
#if NCNN_VULKAN
return ((Option*)opt)->use_vulkan_compute;
#else
(void)opt;
return 0;
#endif
}


+ 0
- 2
src/layer/interp.cpp View File

@@ -408,7 +408,6 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co
{
int w = bottom_blob.w;
int h = bottom_blob.h;
int channels = bottom_blob.c;

int outh = output_height;
int outw = output_width;
@@ -416,7 +415,6 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co
{
h = 1;
w = 1;
channels = bottom_blob.w;
}
if (outh == 0 || outw == 0)
{


Loading…
Cancel
Save