Skip to content

Code uses non-C99 compliant constructs #205

@michael-o

Description

@michael-o
  1. What version of ODPI-C are you using (see dpi.h)?
    5.6.4

  2. What OS (and version) is your application on?
    HP-UX 11.31

  3. What compiler (and version) did you use?
    HP aCC 06.29

  4. What is your version of the Oracle Client (e.g. Instant Client)? How was it installed? Where it is installed?
    Full Oracle Client 19

  5. What is your Oracle Database version?
    Oracle 19 SE2

What problem or error(s) you are seeing?

Current code uses anonymous unions in a struct which are a compiler extension and are not C99 compliant. The HP aCC trips over that and refuses to compile.

Here is a fix: main...michael-o:odpi:c99-compliance

Works on LLVM and HP aCC.

You can simulate the issue on LLVM or GCC by setting: EXTRA_CFLAGS ?= -std=c99 -pedantic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions