X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstat-time.h;h=8957ab46083ccd3ad8784a773e41e9a307e4c2d0;hb=5b63b76064a130bdaadb1fda7ab50e82896446e1;hp=6b02e4c31060f5456fe20f9e20316c89ee5b17b1;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/stat-time.h b/lib/stat-time.h index 6b02e4c31..8957ab460 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 \