From: Bruno Haible Date: Sun, 5 Jan 2020 19:42:12 +0000 (+0100) Subject: tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes. X-Git-Tag: v1.0~4363 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=43b5194d5b156f8dd7ae576952568d331978f5f0;p=gnulib.git tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes. * lib/stdlib.in.h: Tweak last commit. --- diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index e96e9d9e25..49bbf6fccf 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -203,7 +203,7 @@ _GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name)); # endif # ifndef GNULIB_defined_canonicalize_file_name # define GNULIB_defined_canonicalize_file_name \ - !@HAVE_CANONICALIZE_FILE_NAME@ || @REPLACE_CANONICALIZE_FILE_NAME@ + (!@HAVE_CANONICALIZE_FILE_NAME@ || @REPLACE_CANONICALIZE_FILE_NAME@) # endif _GL_CXXALIASWARN (canonicalize_file_name); #elif defined GNULIB_POSIXCHECK @@ -521,7 +521,7 @@ _GL_FUNCDECL_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); _GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); # endif # ifndef GNULIB_defined_ptsname_r -# define GNULIB_defined_ptsname_r !@HAVE_PTSNAME_R@ || @REPLACE_PTSNAME_R@ +# define GNULIB_defined_ptsname_r (!@HAVE_PTSNAME_R@ || @REPLACE_PTSNAME_R@) # endif _GL_CXXALIASWARN (ptsname_r); #elif defined GNULIB_POSIXCHECK