On 7/26/20 2:33 PM, Gisle Vanem wrote:

  argz.h(58): warning C4138: '*/' found outside of comment (compiling source file argz.c)

Thanks, I installed the attached.
>From dcd37862ffbbb0ee15d90e6c08afcba15271b305 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sun, 26 Jul 2020 14:38:48 -0700
Subject: [PATCH] argz: pacify MSVC

* lib/argz.in.h: Avoid "*/*" to pacify MSVC.
Problem reported by Gisle Vanem.
---
 ChangeLog     | 4 ++++
 lib/argz.in.h | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index aee21afed..63138b822 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2020-07-26  Paul Eggert  <egg...@cs.ucla.edu>
 
+	argz: pacify MSVC
+	* lib/argz.in.h: Avoid "*/*" to pacify MSVC.
+	Problem reported by Gisle Vanem.
+
 	libgmp: remove dependency on havelib
 	* m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
 	use the more-traditional AC_SEARCH_LIBS approach.
diff --git a/lib/argz.in.h b/lib/argz.in.h
index 4ca95cbdc..3a2664689 100644
--- a/lib/argz.in.h
+++ b/lib/argz.in.h
@@ -48,7 +48,7 @@ extern error_t argz_create_sep (const char *restrict /*string*/,
 
 /* Returns the number of strings in ARGZ.  */
 
-extern size_t argz_count (const char */*argz*/, size_t /*len*/);
+extern size_t argz_count (const char * /*argz*/, size_t /*len*/);
 
 /* Puts pointers to each string in ARGZ into ARGV, which must be large enough
    to hold them all.  */
@@ -59,7 +59,7 @@ extern void argz_extract (const char *restrict /*argz*/, size_t /*len*/,
 /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's
    except the last into the character SEP.  */
 
-extern void argz_stringify (char */*argz*/, size_t /*len*/, int /*sep*/);
+extern void argz_stringify (char * /*argz*/, size_t /*len*/, int /*sep*/);
 
 /* Append BUF, of length BUF_LEN to the argz vector in ARGZ & ARGZ_LEN.  */
 
-- 
2.17.1

Reply via email to