bug-gnulib
[Top][All Lists]
Advanced

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

argmatch TEST code


From: Gisle Vanem
Subject: argmatch TEST code
Date: Thu, 18 Mar 2021 09:51:58 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hello list.

Trying to compile 'argmatch.c' with '-DTEST', I
got this error:

  argmatch.c(269): error C2172: 'argmatch_to_argument':
  actual parameter is not a pointer: parameter 1

It should be patched to:

--- a/lib/argmatch.c 2021-01-01 14:12:49
+++ b/lib/argmatch.c 2021-03-18 09:48:46
@@ -266,7 +266,7 @@
                              backup_args, backup_vals);

   printf ("The version control is '%s'\n",
-          ARGMATCH_TO_ARGUMENT (backup_type, backup_args, backup_vals));
+          ARGMATCH_TO_ARGUMENT (&backup_type, backup_args, backup_vals));


--
--gv



reply via email to

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