emacs-devel
[Top][All Lists]
Advanced

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

Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64


From: Ken Brown
Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64
Date: Wed, 31 Aug 2016 14:11:41 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

On 8/31/2016 1:40 PM, Angelo Graziosi wrote:
$ cat test.c
#include <stdint.h>

/*extern intptr_t execve (const char *, char * const *, char * const *);*/
extern intptr_t execve (const char *, char * const [], char * const []);

int main()
{
  return 0;
}

$ gcc test.c
test.c:4:17: warning: conflicting types for built-in function ‘execve’
 extern intptr_t execve (const char *, char * const [], char * const []);

According to

  http://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html
  http://man7.org/linux/man-pages/man2/execve.2.html

you should include <unistd.h>, and the return type should be int.

Ken



reply via email to

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