]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix GCC version detection for __attribute__((deprecated)) (#2472)
authorSam James <sam@gentoo.org>
Wed, 1 Jan 2025 18:56:51 +0000 (18:56 +0000)
committerGitHub <noreply@github.com>
Wed, 1 Jan 2025 18:56:51 +0000 (10:56 -0800)
commita186d9662b4e3bc2e0f39d3248f9c1244c4346cb
tree8faefeed674c4f0055af95efd49e3b6c112d2117
parent14b8803c40d36fe1f0c8b3bb2846d865e3adcfce
Fix GCC version detection for __attribute__((deprecated)) (#2472)

The #if condition as-written fails for any major >= 3 if minor < 1, e.g.
GCC 15.0 (while in development).

Use the idiom described in the GCC docs [0] to avoid this.

[0] https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

Fixes: ab94a813b0f64cbc1bcb952bf55424a2d9c7f1d9
libarchive/archive_entry.h