[Top][All Lists]

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

[bug #57277] FAIL: test-canonicalize-lgpl with GCC 10

From: Bruno Haible
Subject: [bug #57277] FAIL: test-canonicalize-lgpl with GCC 10
Date: Wed, 20 Nov 2019 21:15:36 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Follow-up Comment #2, bug #57277 (project findutils):

Will this patch, that uses the same technique as canonicalize-lgpl.c, work? I
can't test it, because I don't have a GCC 10 installed.

diff --git a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c
index 4ce06e4..d9a9773 100644
--- a/tests/test-canonicalize-lgpl.c
+++ b/tests/test-canonicalize-lgpl.c
@@ -16,6 +16,10 @@
 /* Written by Bruno Haible <address@hidden>, 2007.  */
+/* Don't use __attribute__ __nonnull__ in this compilation unit.  Otherwise
+   undefined-behaviour of GCC or clang may let the test with null_ptr crash. 
+#define _GL_ARG_NONNULL(params)
 #include <config.h>
 #include <stdlib.h>


Reply to this item at:


  Message sent via Savannah

reply via email to

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