patch-src_ls_c 826 B

1234567891011121314151617181920
  1. --- coreutils-9.0.orig/src/ls.c 2021-09-24 13:31:05.000000000 +0200
  2. +++ coreutils-9.0/src/ls.c 2022-02-24 04:39:40.532579515 +0100
  3. @@ -2273,7 +2273,7 @@ decode_switches (int argc, char **argv)
  4. if (linelen < 0)
  5. {
  6. /* Suppress bogus warning re comparing ws.ws_col to big integer. */
  7. -# if __GNUC_PREREQ (4, 6)
  8. +# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
  9. # pragma GCC diagnostic push
  10. # pragma GCC diagnostic ignored "-Wtype-limits"
  11. # endif
  12. @@ -2282,7 +2282,7 @@ decode_switches (int argc, char **argv)
  13. && 0 <= ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws)
  14. && 0 < ws.ws_col)
  15. linelen = ws.ws_col <= MIN (PTRDIFF_MAX, SIZE_MAX) ? ws.ws_col : 0;
  16. -# if __GNUC_PREREQ (4, 6)
  17. +# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
  18. # pragma GCC diagnostic pop
  19. # endif
  20. }