Skip to content

Compilation error with GCC 10.2.1 (embedded) #4

Closed
@shalomcrown

Description

@shalomcrown

GCC version 10.2.1
The _jsonb_escape function returns a log, but this is assigned to a jsonbcode eum value in the calling routines.
It isn't always possible to add a compilation flag to allow this, as the compiler error suggests:


json-build/json-build.h:406:28: error: invalid conversion from 'long int' to 'jsonbcode' [-fpermissive]

  406 |         ret = _jsonb_escape(&pos, buf + b->pos, bufsize - b->pos, key, len);
      |               ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                            |
      |                            long int

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