Skip to content

Commit

Permalink
Fix GNU warning "Warning: Return value err_message of function declar…
Browse files Browse the repository at this point in the history
…ed at (1) not set [-Wreturn-type]"
  • Loading branch information
scrasmussen committed May 9, 2024
1 parent 25948d4 commit cc25fdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function linterp_1D(this, var_name, year, month, day, hour, min, sec) result(err
this%tend1d%q = this%tend2d%q(:,1)
endif
end select

err_message = ""
end function linterp_1D

! ####################################################################################
Expand Down Expand Up @@ -163,6 +163,7 @@ function linterp_2D(this, var_name, lon, lat, year, month, day, hour, min, sec)
case("q")
this%tend1d%q = w1*this%tend3d%q(iNearest,:,ti(1)) + w2*this%tend3d%q(iNearest,:,tf(1))
end select
err_message = ""
end function linterp_2D

! ####################################################################################
Expand Down

0 comments on commit cc25fdd

Please sign in to comment.