Skip to content

Handle deprecation of function for MB-system#5974

Merged
PaulWessel merged 2 commits intomasterfrom
mb-deprecation
Nov 10, 2021
Merged

Handle deprecation of function for MB-system#5974
PaulWessel merged 2 commits intomasterfrom
mb-deprecation

Conversation

@PaulWessel
Copy link
Member

See #5966 for background. Solution is to rename the function and add a backwards compatible macro for the old function in gmt_mb.h to handle this change. We just pass col = 0 sa the missing third argument since any column checking was dong outside the function before 6.3.0.

See #5966 for background.  Solution is to rename the function and add a backwards compatible macro in gmt_mb.h to handle this change.
@PaulWessel PaulWessel added this to the 6.3.0 milestone Nov 10, 2021
@PaulWessel PaulWessel requested a review from maxrjones November 10, 2021 18:11
@PaulWessel PaulWessel self-assigned this Nov 10, 2021
@maxrjones
Copy link
Member

Build error:

mbgrd2obj.c:360:7: error: use of undeclared identifier 'value'
                if (gmt_input_is_nan_proxy(GMT, G->data[ij])) {
                    ^
/Users/meghanj/Sandbox/gmt-dev/include/gmt/gmt_mb.h:35:37: note: expanded from macro 'gmt_input_is_nan_proxy'
#define gmt_input_is_nan_proxy (GMT,value) gmt_input_col_is_nan_proxy (GMT,value,0)    /* Deprecated in GMT 6.3.0 */

@PaulWessel
Copy link
Member Author

Now builds for me (!)

@PaulWessel PaulWessel merged commit 1799d3c into master Nov 10, 2021
@PaulWessel PaulWessel deleted the mb-deprecation branch November 10, 2021 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants