Skip to content

caddr_t deprecated in std=gnu99 #99

@topher800

Description

@topher800

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions