diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-10 09:27:33 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-10 09:27:33 +0000 |
commit | e80777b54c5b430ca044e16878f59a2020423d48 (patch) | |
tree | b72b3422d129532b8f0ceb415c6e7c5109e3fe75 /net-misc/chrony/files/chrony-4.3-strict-prototypes-clang16.patch | |
parent | aa61828f226f3b30e6939408847d914a145fdf35 (diff) |
gentoo auto-resync : 10:11:2022 - 09:27:33
Diffstat (limited to 'net-misc/chrony/files/chrony-4.3-strict-prototypes-clang16.patch')
-rw-r--r-- | net-misc/chrony/files/chrony-4.3-strict-prototypes-clang16.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/net-misc/chrony/files/chrony-4.3-strict-prototypes-clang16.patch b/net-misc/chrony/files/chrony-4.3-strict-prototypes-clang16.patch new file mode 100644 index 000000000000..fb89a1eb3fef --- /dev/null +++ b/net-misc/chrony/files/chrony-4.3-strict-prototypes-clang16.patch @@ -0,0 +1,71 @@ +https://git.tuxfamily.org/chrony/chrony.git/commit/?id=7b97668319f9449b4adb1a978bb1fe9b0fb22e4d +https://bugs.gentoo.org/880519 + +From 7b97668319f9449b4adb1a978bb1fe9b0fb22e4d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com> +Date: Wed, 9 Nov 2022 09:17:14 +0100 +Subject: getdate: fix various warnings which will be errors with clang-16 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +These were found by Gentoo's QA while rebuilding the world with +clang-16: https://bugs.gentoo.org/880519 + +Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> + +--- a/getdate.y ++++ b/getdate.y +@@ -448,9 +448,9 @@ o_merid : /* NULL */ + the same signature as the function definition does. */ + #include "getdate.h" + +-extern struct tm *gmtime (); +-extern struct tm *localtime (); +-extern time_t mktime (); ++extern struct tm *gmtime (const time_t *timep); ++extern struct tm *localtime (const time_t *timep); ++extern time_t mktime (struct tm *tm); + + /* Month and day table. */ + static TABLE const MonthDayTable[] = { +@@ -641,16 +641,13 @@ static TABLE const MilitaryTable[] = { + + /* ARGSUSED */ + static int +-yyerror (s) +- char *s ATTRIBUTE_UNUSED; ++yyerror (char *s ATTRIBUTE_UNUSED) + { + return 0; + } + + static int +-ToHour (Hours, Meridian) +- int Hours; +- MERIDIAN Meridian; ++ToHour (int Hours, MERIDIAN Meridian) + { + switch (Meridian) + { +@@ -677,8 +674,7 @@ ToHour (Hours, Meridian) + } + + static int +-ToYear (Year) +- int Year; ++ToYear (int Year) + { + if (Year < 0) + Year = -Year; +@@ -694,8 +690,7 @@ ToYear (Year) + } + + static int +-LookupWord (buff) +- char *buff; ++LookupWord (char *buff) + { + register char *p; + register char *q; +cgit v0.10.2 |