]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: don't ifdef printf arguments
authorRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 28 Jun 2017 16:37:44 +0000 (18:37 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 29 Jun 2017 12:04:36 +0000 (14:04 +0200)
commit3eeaef995bced0b44c23ae1dcd6c808667667986
tree07ca5d799f4bf833563e9f5d387bc5d52cf501d3
parenta4dc44337dcf81357c14ca148f947a6de7cc7894
hwclock: don't ifdef printf arguments

This may fails if printf() is macro, introduced in cc7cb070.

clang compiler warnings:

    CC       sys-utils/hwclock.o
  ../sys-utils/hwclock.c:1228:2: warning: embedding a directive within macro arguments has undefined behavior [-Wembedded-directive]
  #ifdef __linux__
   ^
  ../sys-utils/hwclock.c:1230:2: warning: embedding a directive within macro arguments has undefined behavior [-Wembedded-directive]
  #endif
   ^
  2 warnings generated.

CC: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
sys-utils/hwclock.c