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 <br...@clisp.org>, 2007.  */
 
+/* Don't use __attribute__ __nonnull__ in this compilation unit.  Otherwise
the
+   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:

  <https://savannah.gnu.org/bugs/?57277>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to