You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with clang==: warning: variable length arrays are a C99 feature [-Wvla-extension]
with g++: warning: ISO C++ forbids variable length array ‘outfmt’ [-Wvla]
The text was updated successfully, but these errors were encountered:
Better compilation and use in rSOILWAT2
we have three documented and suppressed/ignored problems:
- memory leak (use of a suppression file): #205
- compile warning #208: treating c input as c++
- compile warning #214: variable array length
- replace new constant `OVER_SIZE` introduced with commit 2369858 by existing and appropriate `MAX_LAYERS` for all previous Variable-length arrays used for soil layers
- renamed constant `STR_OVER_SIZE` to `ERRSTRLEN` to indicate use (now moved to `filefuncs.h` and commented use by function `LogError`
-> this commit produces identical output as `master` v4.2.3
```
make clean bin bint_run
diff testing/Output/ testing/Output_ref/ -qs
```
--> this commit eliminated all variable length arrays compiler warnings on my local system under both gcc and clang
--> confirm that is true for CIs as well and then close issue #214 if confirmed
with clang==:
warning: variable length arrays are a C99 feature [-Wvla-extension]
with g++:
warning: ISO C++ forbids variable length array ‘outfmt’ [-Wvla]
The text was updated successfully, but these errors were encountered: