>From e7307acb2016474fe0d5b12f1e659a661680ea99 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 13:00:05 +0200 Subject: [PATCH 01/13] Fix undesired warnings. * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with clang. --- ChangeLog | 6 ++++++ lib/sys_select.in.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index af6b5d1..7761d3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2020-08-16 Bruno Haible + Fix undesired warnings. + * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with + clang. + +2020-08-16 Bruno Haible + C++ tests: Fix link errors on MSVC (regression from 2020-05-31). * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 90bd540..d625d73 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -184,7 +184,7 @@ rpl_fd_isset (SOCKET fd, fd_set * set) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gethostname # define gethostname gethostname_used_without_including_unistd_h -# else +# elif !defined __clang__ _GL_WARN_ON_USE (gethostname, "gethostname() used without including "); # endif @@ -219,7 +219,7 @@ rpl_fd_isset (SOCKET fd, fd_set * set) # define setsockopt setsockopt_used_without_including_sys_socket_h # undef shutdown # define shutdown shutdown_used_without_including_sys_socket_h -# else +# elif !defined __clang__ _GL_WARN_ON_USE (socket, "socket() used without including "); _GL_WARN_ON_USE (connect, -- 2.7.4