From b75c0720a41b95e0a2e37aa3bc5591454ded65b8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 2 May 2017 16:23:54 +0200 Subject: btrfs-progs: fssum: fix warning, include correct header for major() tests/fssum.c:599:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . sum_add_u64(&cs, major(st.st_rdev)); Signed-off-by: David Sterba --- tests/fssum.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/fssum.c b/tests/fssum.c index 8be44547..5dde9984 100644 --- a/tests/fssum.c +++ b/tests/fssum.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3