]> Savannah Git Hosting - gnulib.git/commit
time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
authorJim Meyering <meyering@fb.com>
Sun, 18 Oct 2015 16:32:21 +0000 (09:32 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 18 Oct 2015 16:35:52 +0000 (09:35 -0700)
commit0de3313d86751b8fc4616aad72cc9b6c707f1b3e
tree79c0f6a362c19c81a877683db5ca72e9cb38a10f
parent37c054af09357276eb560990eba1f20cdc489bfc
time_rz: avoid warning from bleeding-edge gcc's -Wnonnull

Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
would see this:

lib/time_rz.c: In function 'localtime_rz':
lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
  [-Werror=nonnull]
           if (tm && !save_abbr (tz, tm))
               ^

That was complaining about "tm" because it is a parameter that was
declared with the __nonnull__ attribute.
* lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
result of localtime_r.
ChangeLog
lib/time_rz.c