https://github.com/openucx/ucx/pull/8495 From 77ea0b015bc2d18f4a6bc2ba0fb9b71ac7532199 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 3 Sep 2022 00:44:28 +0100 Subject: [PATCH 1/2] UCM: Fix deprecated includes Fix deprecation warnings like: ``` In file included from /var/tmp/portage/sys-cluster/ucx-1.10.0_rc5/work/ucx-1.10.0-rc5/src/ucs/sys/sys.h:29, from mmap/install.c:21: /usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include to [-Werror=cpp[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp]] 1 | #warning redirecting incorrect #include to | ^~~~~~~ ``` Bug: https://bugs.gentoo.org/832966 Signed-off-by: Sam James --- a/src/tools/profile/read_profile.c +++ b/src/tools/profile/read_profile.c @@ -13,12 +13,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include --- a/src/ucm/util/reloc.c +++ b/src/ucm/util/reloc.c @@ -17,7 +17,6 @@ #include #include -#include #include #include #include --- a/test/apps/sockaddr/sa_tcp.cc +++ b/test/apps/sockaddr/sa_tcp.cc @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include #include #include From 9f9e50e5472e390c86147b9031ddd8525207822a Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 3 Sep 2022 00:44:56 +0100 Subject: [PATCH 2/2] UCS: Fix deprecated includes Fix deprecation warnings like: ``` In file included from /var/tmp/portage/sys-cluster/ucx-1.10.0_rc5/work/ucx-1.10.0-rc5/src/ucs/sys/sys.h:29, from mmap/install.c:21: /usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include to [-Werror=cpp[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp]] 1 | #warning redirecting incorrect #include to | ^~~~~~~ ``` Bug: https://bugs.gentoo.org/832966 Signed-off-by: Sam James --- a/src/ucs/sys/sys.h +++ b/src/ucs/sys/sys.h @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -36,6 +35,7 @@ #include #include #include +#include #include #include #include --- a/test/gtest/ucs/test_vfs.cc +++ b/test/gtest/ucs/test_vfs.cc @@ -12,7 +12,7 @@ extern "C" { #include } -#include +#include #include