From 81eb84868d4222e2e4b7082406ad9ada796b8a8f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 8 Feb 2008 17:49:35 +0100 Subject: [PATCH] Avoid two "parameter unused" warnings. * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime): Mark "st" as used. --- ChangeLog | 4 ++++ lib/stat-time.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 887362f291..a60da367f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-02-08 Jim Meyering + Avoid two "parameter unused" warnings. + * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime): + Mark "st" as used. + Use "git COMMAND", not "git-COMMAND". * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/. * build-aux/announce-gen (get_tool_versions): Correct a diagnostic. diff --git a/lib/stat-time.h b/lib/stat-time.h index 6b02e4c310..8957ab4608 100644 --- a/lib/stat-time.h +++ b/lib/stat-time.h @@ -93,6 +93,8 @@ get_stat_birthtime_ns (struct stat const *st) # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC return STAT_TIMESPEC_NS (st, st_birthtim); # else + /* Avoid a "parameter unused" warning. */ + (void) st; return 0; # endif } @@ -162,6 +164,8 @@ get_stat_birthtime (struct stat const *st) /* Birth time is not supported. Set tv_sec to avoid undefined behavior. */ t.tv_sec = -1; t.tv_nsec = -1; + /* Avoid a "parameter unused" warning. */ + (void) st; #endif #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ -- 2.30.2