Skip to content

Build failure with GCC 15 #113

@orlitzky

Description

@orlitzky

GCC 15 is out, and it defaults to C23. This is causing a build failure:

hstmt.c: In function 'SQLAllocStmt_Internal':
hstmt.c:234:48: error: too many arguments to function 'hproc3'
  234 |       CALL_DRIVER (pstmt->hdbc, pdbc, retcode, hproc3,
      |                                                ^~~~~~

(and others like it). This is most likely due to int foo() being changed in C23 to mean that foo takes zero arguments rather than an unknown/undefined number of arguments.

In any case, a temporary workaround is to build with -std=c17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions