Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid implicit function declarations in the configure script #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autoconf/hercules.m4
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ AC_DEFUN([_HC_CHECK_NEED_GETOPT_WRAPPER],
Will the linker complain about duplicate
symbols for getopt? We'll soon find out!
*/
int getopt(int, char *const[], const char *);
extern char *optarg;
extern int optind;

Expand All @@ -315,6 +316,7 @@ DUPGETOPT1
needs getopt. Will linker complain about
duplicate symbols for getopt? Let's see.
*/
int getopt(int, char *const[], const char *);
extern char *optarg;
extern int optind;
extern int test2();
Expand Down Expand Up @@ -385,7 +387,7 @@ AC_DEFUN([HC_CHECK_NEED_GETOPT_OPTRESET],
[hc_cv_need_getopt_optreset],
[
AC_TRY_LINK(
[],
[int getopt(int, char *const[], const char *);],
[
extern int optreset;
optreset=1;
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ if test "$GCC" = "yes"; then

-g -O2 -fomit-frame-pointer
*/
#include <string.h>

int foo ()
{
Expand Down