summaryrefslogtreecommitdiffstats
path: root/advice.c
diff options
context:
space:
mode:
authorAlejandro R. Sedeño <asedeno@mit.edu>2022-10-06 00:19:28 +0200
committerJunio C Hamano <gitster@pobox.com>2022-10-06 04:09:59 +0200
commit7c07f36ad20ff206f6ed1a5609b295ec471b6cca (patch)
treecaf99f2254f2936f6a5d4d352458c010aacd70e2 /advice.c
parentgit-compat-util.h: use "deprecated" for UNUSED variables (diff)
downloadgit-7c07f36ad20ff206f6ed1a5609b295ec471b6cca.tar.xz
git-7c07f36ad20ff206f6ed1a5609b295ec471b6cca.zip
git-compat-util.h: GCC deprecated message arg only in GCC 4.5+
https://gcc.gnu.org/gcc-4.5/changes.html says The deprecated attribute now takes an optional string argument, for example, __attribute__((deprecated("text string"))), that will be printed together with the deprecation warning. While GCC 4.5 is already 12 years old, git checks for even older versions in places. Let's not needlessly break older compilers when a small and simple fix is readily available. Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu> Signed-off-by: Alejandro R Sedeño <asedeno@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.c')
0 files changed, 0 insertions, 0 deletions