DrylandEcology/rSOILWAT2

Compile warning: unused parameter ‘pcg_rng’

Closed this issue · 1 comments

rands.c:32:27: warning: unused parameter ‘seed’ [-Wunused-parameter]
 void RandSeed(signed long seed, pcg32_random_t* pcg_rng) {
                           ^
rands.c:32:49: warning: unused parameter ‘pcg_rng’ [-Wunused-parameter]
 void RandSeed(signed long seed, pcg32_random_t* pcg_rng) {
                                                 ^
rands.c: In function ‘RandUni’:
rands.c:62:32: warning: unused parameter ‘pcg_rng’ [-Wunused-parameter]
 double RandUni(pcg32_random_t* pcg_rng) {
                                ^
rands.c: In function ‘RandUniIntRange’:
rands.c:107:14: warning: unused variable ‘r’ [-Wunused-variable]
   long f, l, r, rtn;
              ^
rands.c:106:72: warning: unused parameter ‘pcg_rng’ [-Wunused-parameter]
 int RandUniIntRange(const long first, const long last, pcg32_random_t* pcg_rng) {
                                                                        ^
rands.c: In function ‘RandNorm’:
rands.c:276:61: warning: unused parameter ‘pcg_rng’ [-Wunused-parameter]
 double RandNorm(double mean, double stddev, pcg32_random_t* pcg_rng) {
 

These warnings arise due to DrylandEcology/SOILWAT2#233