Skip to content
Snippets Groups Projects
Commit 875791dc authored by Lucas Magalhães's avatar Lucas Magalhães
Browse files

Fix format overflow errors from GCC13 in require.c

In function ‘compareVersions’,
    inlined from ‘require_priv’ at .././src/require.c:1025:29:
.././src/require.c:640:9: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
  640 |   debug("require: compareVersions(found=%s, request=%s)\n", found, request);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.././src/require.c:601:28: note: in definition of macro ‘debug’
  601 |   if (requireDebug) printf(__VA_ARGS__)
      |                            ^~~~~~~~~~~
.././src/require.c: In function ‘require_priv’:
.././src/require.c:640:53: note: format string is defined here
  640 |   debug("require: compareVersions(found=%s, request=%s)\n", found, request);
      |                                                     ^~
In function ‘compareVersions’,
    inlined from ‘require_priv’ at .././src/require.c:1025:29:
.././src/require.c:640:9: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
  640 |   debug("require: compareVersions(found=%s, request=%s)\n", found, request);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.././src/require.c:601:28: note: in definition of macro ‘debug’
  601 |   if (requireDebug) printf(__VA_ARGS__)
      |                            ^~~~~~~~~~~
.././src/require.c: In function ‘require_priv’:
.././src/require.c:640:53: note: format string is defined here
  640 |   debug("require: compareVersions(found=%s, request=%s)\n", found, request);
      |                                                     ^~
.././src/require.c:1031:50: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
 1031 |                 printf("require: %s %s may match %s\n", module, currentFilename,
      |                                                  ^~
parent fd05d245
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment