gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-981


From: Eli Zaretskii
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-981-g727c2b4
Date: Sat, 24 Sep 2016 12:38:53 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-4.1-stable has been updated
       via  727c2b4c7011c252fd1973358629cccbfecfc25d (commit)
      from  9cfede253d3d5f6907a6a1c0263b08442267cd55 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=727c2b4c7011c252fd1973358629cccbfecfc25d

commit 727c2b4c7011c252fd1973358629cccbfecfc25d
Author: Eli Zaretskii <address@hidden>
Date:   Sat Sep 24 15:38:22 2016 +0300

    Fix compilation warnings on MinGW with the latest runtime
    reported by Marc de Bourget <address@hidden>.

diff --git a/ChangeLog b/ChangeLog
index 4352c4b..ad1de78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-09-24  Eli Zaretskii  <address@hidden>
+
+       * debug.c (restart) [__MINGW32__]: Cast 2nd argument of execvp to
+       avoid compiler warnings about prototype mismatch.  Reported by
+       Marc de Bourget <address@hidden>.
+
 2016-09-08         Arnold D. Robbins     <address@hidden>
 
        * command.y: Update license text to version 3. Oops.
diff --git a/debug.c b/debug.c
index 665775d..6d40cac 100644
--- a/debug.c
+++ b/debug.c
@@ -2902,7 +2902,11 @@ restart(bool run)
        close_all();
 
        /* start a new process replacing the current process */
+#ifdef __MINGW32__
+       execvp(d_argv[0], (const char * const *)d_argv);
+#else
        execvp(d_argv[0], d_argv);
+#endif
 
        /* execvp failed !!! */
        fprintf(out_fp, _("Failed to restart debugger"));
diff --git a/pc/ChangeLog b/pc/ChangeLog
index b2d4edd..7ba5fd9 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,18 @@
+2016-09-24  Eli Zaretskii  <address@hidden>
+
+       Fix compilation warnings on MinGW with the latest runtime.
+       Reported by Marc de Bourget <address@hidden>.
+
+       * socket.h (_WIN32_WINNT): If it's already defined, redefine it
+       only if the value is less than what we need.  This avoids compiler
+       warnings about redefinitions.
+
+       * config.h (HAVE_STRINGS_H): Define to 1.
+
+       * config.sed: Define STRINGS_H as well, as MinGW runtime 3.22 and
+       later needs that to get the prototypes of strcasecmp and
+       strncasecmp.
+
 2016-09-08         Scott Deifik  <address@hidden>
 
        * Makefile.tst: Sync with mainline.
diff --git a/pc/config.h b/pc/config.h
index e166c53..d584973 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -261,7 +261,7 @@
 #define HAVE_STRINGIZE 1
 
 /* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
+#define HAVE_STRINGS_H 1
 
 /* Define to 1 if you have the <string.h> header file. */
 #define HAVE_STRING_H 1
diff --git a/pc/config.sed b/pc/config.sed
index 6c1fb3a..a95ee2e 100644
--- a/pc/config.sed
+++ b/pc/config.sed
@@ -155,6 +155,7 @@ s/^#undef HAVE_STRERROR *$/#define HAVE_STRERROR 1/
 #define HAVE_STRFTIME 1\
 #endif
 s/^#undef HAVE_STRINGIZE *$/#define HAVE_STRINGIZE 1/
+s/^#undef HAVE_STRINGS_H *$/#define HAVE_STRINGS_H 1/
 s/^#undef HAVE_STRING_H *$/#define HAVE_STRING_H 1/
 /^#undef HAVE_STRNCASECMP *$/c\
 #define HAVE_STRNCASECMP 1\
diff --git a/pc/socket.h b/pc/socket.h
index 41dd23c..d7b890d 100644
--- a/pc/socket.h
+++ b/pc/socket.h
@@ -7,7 +7,10 @@
 
 #include <io.h>
 
-#define _WIN32_WINNT 0x501
+#if !defined _WIN32_WINNT || _WIN32_WINNT < 0x501
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x501
+#endif
 #include <winsock2.h>
 #include <ws2tcpip.h>
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog     |    6 ++++++
 debug.c       |    4 ++++
 pc/ChangeLog  |   15 +++++++++++++++
 pc/config.h   |    2 +-
 pc/config.sed |    1 +
 pc/socket.h   |    5 ++++-
 6 files changed, 31 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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