bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

src/job.c:... error: too few arguments to function 'find_in_given_path'


From: Bjarni Ingi Gislason
Subject: src/job.c:... error: too few arguments to function 'find_in_given_path'
Date: Thu, 14 Jan 2021 23:02:44 +0000
User-agent: Mutt/1.5.20 (2009-12-10)

  Error message:

src/job.c: In function 'child_execute_job':
src/job.c:2394:19: error: too few arguments to function 'find_in_given_path'
 2394 |     cmd = (char *)find_in_given_path (argv[0], p, 0);
      |                   ^~~~~~~~~~~~~~~~~~

  The number of arguments was changed to be four in GnuLib file 
"lib/findprog-in.c":

2019-09-09 20:46:44 +0200  75) find_in_given_path (const char *progname, const 
char *path,
2020-12-14 20:56:04 +0100  76)                     const char *directory, bool 
optimize_for_exec)


Warnings:

In file included from src/job.c:17:
src/makeint.h:512:1: warning: function declaration isn't a prototype 
[-Wstrict-prototypes]
  512 | void out_of_memory () NORETURN;
      | ^~~~
src/makeint.h:678:15: warning: redundant redeclaration of 'environ' 
[-Wredundant-decls]
  678 | extern char **environ;
      |               ^~~~~~~
In file included from lib/unistd.h:40,
                 from src/makeint.h:124,
                 from src/job.c:17:
/usr/include/unistd.h:545:15: note: previous declaration of 'environ' was here
  545 | extern char **environ;
      |               ^~~~~~~
src/job.c:218:5: warning: redundant redeclaration of 'getloadavg' 
[-Wredundant-decls]
  218 | int getloadavg (double loadavg[], int nelem);
      |     ^~~~~~~~~~
In file included from lib/stdlib.h:36,
                 from src/makeint.h:256,
                 from src/job.c:17:
/usr/include/stdlib.h:1003:12: note: previous declaration of 'getloadavg' was 
here
 1003 | extern int getloadavg (double __loadavg[], int __nelem)
      |            ^~~~~~~~~~
src/job.c: In function 'child_handler':
src/job.c:599:20: warning: unused parameter 'sig' [-Wunused-parameter]
  599 | child_handler (int sig UNUSED)
      |                ~~~~^~~
src/job.c: In function 'child_execute_job':
src/job.c:2394:19: error: too few arguments to function 'find_in_given_path'
 2394 |     cmd = (char *)find_in_given_path (argv[0], p, 0);
      |                   ^~~~~~~~~~~~~~~~~~
In file included from src/job.c:141:
lib/findprog.h:68:20: note: declared here
   68 | extern const char *find_in_given_path (const char *progname, const char 
*path,
      |                    ^~~~~~~~~~~~~~~~~~
src/job.c: In function 'construct_command_argv_internal':
src/job.c:2686:52: warning: unused parameter 'batch_filename' 
[-Wunused-parameter]
 2686 |                                  int flags, char **batch_filename 
UNUSED)
      |                                             ~~~~~~~^~~~~~~~~~~~~~

-- 
Bjarni I. Gislason



reply via email to

[Prev in Thread] Current Thread [Next in Thread]