Skip to content

Compilation error with gdxrrw package on Linux #697

Description

@lolow

An error occurs during the compilation of the gdxrrw package on Linux. This issue may be due to stricter rules enforced by the compiler.

rgdx.c: In function ‘checkRgdxList’:
rgdx.c:174:13: error: format not a string literal and no format arguments [-Werror=format-security]
  174 |       error(fieldErrorMsg);
      |             ^~~~~~~~~~~~~
rgdx.c:196:13: error: format not a string literal and no format arguments [-Werror=format-security]
  196 |       error(fieldErrorMsg);
      |             ^~~~~~~~~~~~~
rgdx.c: In function ‘rgdx’:
rgdx.c:528:14: error: format not a string literal and no format arguments [-Werror=format-security]
  528 |       error (buf);
      |              ^~~
rgdx.c:590:13: error: format not a string literal and no format arguments [-Werror=format-security]
  590 |       error(buf);
      |             ^~~
rgdx.c:602:15: error: format not a string literal and no format arguments [-Werror=format-security]
  602 |         error(buf);
      |               ^~~
cc1: some warnings being treated as errors

To resolve this, a few modifications can be made to the package. Please refer to the changes in the rgdx.c file at GAMS-dev/gdxrrw@master...lolow:gdxrrw:master

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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