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
warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
The text was updated successfully, but these errors were encountered:
Write prototypes for your functions in a .h file. I usually have a public .h file, and at least one internal .h file. For example on netcdf-c, we have public-facing netcdf.h, and internal-only nc3internal.h, nc4internal.h.
Can you add one or more internal .h files with the missing prototypes?
Wgrib2 uses pointers to functions, and the arguments to the pointer-functions were never prototype-ed. The new clang is the first compiler to rightly warn about the omission.
The clang compiler is now giving warnings
warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
The text was updated successfully, but these errors were encountered: