]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
cp: simplify GCC pacification
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
* src/cp.c (make_dir_parents_private): Remove IF_LINT code that is
no longer needed, as GCC has apparently gotten smarter since 2008.

src/cp.c

index 5084037f15cd020f9f457644628d8b6d6ba4fae4..b73f2cb491442969e75e3c38c55dc8c17d66711b 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -404,7 +404,7 @@ make_dir_parents_private (char const *const_dir, size_t src_offset,
 
       while ((slash = strchr (slash, '/')))
         {
-          struct dir_attr *new IF_LINT ( = NULL);
+          struct dir_attr *new;
           bool missing_dir;
 
           *slash = '\0';