Skip to content
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

caddr_t deprecated in std=gnu99 #99

Open
topher800 opened this issue Aug 10, 2022 · 0 comments
Open

caddr_t deprecated in std=gnu99 #99

topher800 opened this issue Aug 10, 2022 · 0 comments

Comments

@topher800
Copy link

I am building libecbufr 0.9.2 on MacOS (both BigSur and Monterey) via homebrew. This uses clang versions 13 and above. The ./configure script seems to engage -std=gnu99. caddr_t seems to have been deprecated and should be replaced with 'void *'.

API/Sources/bufr_desc.c:static caddr_t BufrDescriptor_gcmemory=NULL;
API/Sources/bufr_linklist.c:static caddr_t ListNode_gcmemory=NULL;
API/Sources/bufr_linklist.c: gcmem_dealloc( ListNode_gcmemory, (caddr_t)tmp );
API/Sources/bufr_value.c:static caddr_t ValueINT8_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT16_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT32_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT64_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueFLT32_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueFLT64_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueSTRING_gcmemory=NULL;

....also <malloc.h> no longer exists, the stdlib.h is sufficient:

gcmemory.c:29:10: fatal error: 'malloc.h' file not found
#include <malloc.h>

Chris

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

No branches or pull requests

1 participant