bug-gnulib
[Top][All Lists]
Advanced

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

Missing '_Noreturn'


From: Gisle Vanem
Subject: Missing '_Noreturn'
Date: Mon, 27 Jul 2020 00:10:17 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Thanks Paul for a fast patch. 10 minutes!

Here's an error though:

  test-dfa-match-aux.c
  test-dfa-match-aux.c(39): error C2381: 'dfawarn': redefinition;
  '__declspec(noreturn)' or '[[noreturn]]' differs
  lib\dfa.h(125): note: see declaration of 'dfawarn'

which I fixed by:

--- a/lib/dfa.h 2020-01-04 13:18:15
+++ b/lib/dfa.h 2020-07-26 21:52:26
@@ -122,7 +122,7 @@
    that likely doesn't do what the user wanted.  It takes a single
    argument, a NUL-terminated string describing the situation.  The user
    must supply a dfawarn.  */
-extern void dfawarn (const char *);
+extern _Noreturn void dfawarn (const char *);

------

Has something with 'dfa*' changed or it just the latest
MSVC that got stricter on this?

--
--gv



reply via email to

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