Mercurial > hg > octave-lyh > gnulib-hg
changeset 9679:381eff2df16b
Avoid two "parameter unused" warnings.
* lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
Mark "st" as used.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 08 Feb 2008 17:49:35 +0100 |
parents | e183f3b9154c |
children | 8df33869766a |
files | ChangeLog lib/stat-time.h |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-02-08 Jim Meyering <meyering@redhat.com> + 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.
--- a/lib/stat-time.h +++ b/lib/stat-time.h @@ -93,6 +93,8 @@ # 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 @@ /* 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 \