Skip to content
Snippets Groups Projects

Fix -Wincompatible-pointer-types warning (Issue #3)

Merged Alan Coopersmith requested to merge alanc/imake:gcc into master

Fixes warning from gcc 13 that is becoming an error in gcc 14

imake.c: In function ‘doit’:
imake.c:797:29: error: passing argument 2 of ‘execvp’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  797 |                 execvp(cmd, argv);
      |                             ^~~~
      |                             |
      |                             const char **
In file included from imake.c:172:
/usr/include/unistd.h:359:33: note: expected ‘char * const*’ but argument is of type ‘const char **’
  359 | extern int execvp(const char *, char *const *);
      |                                 ^~~~~~~~~~~~~

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading