]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Quiet warnings from ntp_calendar.h: avoid using argument names
authorHarlan Stenn <stenn@ntp.org>
Tue, 15 Jul 2014 08:41:34 +0000 (08:41 +0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 15 Jul 2014 08:41:34 +0000 (08:41 +0000)
bk: 53c4e93eW1o3K5YK0nrbZxy8XQIkvg

ChangeLog
include/ntp_calendar.h

index 60760ddce755c6ad485d330b763b968bb67ab1cf..9e0be8ce773720ad1f1f6f0e75ede49f2da37921 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 * [Bug 2621] Avoid use of indeterminate address after 'free()'
   (minor C standard conformance issue)
+* Quiet warnings from ntp_calendar.h: avoid using argument names.
 (4.2.7p447) 2014/07/05 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 2620] Use version.pm for checking version numbers in NTP::Util.
 * [Bug 2624] Fix signed compare on 'l_fp'.
index eb3937516fe6d9048b05b30885a32c4ce04191a7..3f3e70bf770db01cfaa8ff91455bd5485f523ff2 100644 (file)
@@ -122,7 +122,7 @@ extern time_t vint64_to_time(const vint64 *);
  * standard.
  */
 extern int
-ntpcal_get_build_date(struct calendar * jd);
+ntpcal_get_build_date(struct calendar * /* jd */);
 
 /*
  * Convert a timestamp in NTP scale to a time_t value in the UN*X
@@ -130,7 +130,7 @@ ntpcal_get_build_date(struct calendar * jd);
  * current system time.
  */
 extern vint64
-ntpcal_ntp_to_time(uint32_t ntp, const time_t *pivot);
+ntpcal_ntp_to_time(uint32_t /* ntp */, const time_t * /* pivot */);
 
 /*
  * Convert a timestamp in NTP scale to a 64bit seconds value in the NTP
@@ -139,27 +139,27 @@ ntpcal_ntp_to_time(uint32_t ntp, const time_t *pivot);
  * Note: The pivot must be given in UN*X time scale!
  */
 extern vint64
-ntpcal_ntp_to_ntp(uint32_t ntp, const time_t *pivot);
+ntpcal_ntp_to_ntp(uint32_t /* ntp */, const time_t * /* pivot */);
 
 /*
  * Split a time stamp in seconds into elapsed days and elapsed seconds
  * since midnight.
  */
 extern ntpcal_split
-ntpcal_daysplit(const vint64*);
+ntpcal_daysplit(const vint64 *);
 
 /*
  * Merge a number of days and a number of seconds into seconds,
  * expressed in 64 bits to avoid overflow.
  */
 extern vint64
-ntpcal_dayjoin(int32_t days, int32_t seconds);
+ntpcal_dayjoin(int32_t /* days */, int32_t /* seconds */);
 
 /*
  * Convert elapsed years in Era into elapsed days in Era.
  */
 extern int32_t
-ntpcal_days_in_years(int32_t years);
+ntpcal_days_in_years(int32_t /* years */);
 
 /*
  * Convert a number of elapsed month in a year into elapsed days
@@ -172,14 +172,14 @@ ntpcal_days_in_years(int32_t years);
  * excess! But then, we need no leap year flag, either...)
  */
 extern ntpcal_split
-ntpcal_days_in_months(int32_t months);
+ntpcal_days_in_months(int32_t /* months */);
 
 /*
  * Convert ELAPSED years/months/days of gregorian calendar to elapsed
  * days in Gregorian epoch. No range checks done here!
  */
 extern int32_t
-ntpcal_edate_to_eradays(int32_t years, int32_t months, int32_t mdays);
+ntpcal_edate_to_eradays(int32_t /* years */, int32_t /* months */, int32_t /* mdays */);
 
 /*
  * Convert a time spec to seconds. No range checks done here!