-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With netcdf-c-4.9.3-rc1, pio fails #3017
Comments
In the short term, I wonder if I should add an option |
No add option --disable-legacy-macros. Most users don't want to change their code for this. And won't. |
I agree with the |
Strongly disagree with the default. Don't break backwards compatibility for this. It's not even really unsafe or a problem, just a convention that's being imperfectly followed. Much code depends on it working as it does now. |
It's possible to deprecate the macro itself, here's one way to do it (in action): #ifdef _MSC_VER
#define _FillValue _Pragma ("message( \"'_FillValue' macro is deprecated, please use NC_FillValue\")") "_FillValue"
#else
#define _FillValue _Pragma ("GCC warning \"'_FillValue' macro is deprecated, please use NC_FillValue\"") "_FillValue"
#endif The MSVC solution is not great, I don't think it tells you where it's coming from, but it does tell you something at least. |
With netcdf-c-4.9.3-rc1, pio fails:
I tried both pio 2.5.10 which is what we currently use and latest pio 2.6.2. Both fail with 4.9.3-rc1.
The text was updated successfully, but these errors were encountered: