diff --git a/src/c_api.cpp b/src/c_api.cpp index 34224b6aa..8f884c8c1 100644 --- a/src/c_api.cpp +++ b/src/c_api.cpp @@ -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 } diff --git a/src/layer/interp.cpp b/src/layer/interp.cpp index 3563adb5d..0f3790bd9 100644 --- a/src/layer/interp.cpp +++ b/src/layer/interp.cpp @@ -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) {