Repair glibc make check with -Wformat options enabled.
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Fri, 13 Jul 2018 17:44:40 +0000 (20:44 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 28 Nov 2019 12:47:02 +0000 (15:47 +0300)
commitdf648d77d5d1006a6a048db68f7d6a8fe7d21843
tree012b941c7c1f5f8d4ede99058c6bb6a0f99b5cf0
parent96aab3db122072a242db32c823dd3489321e5def
Repair glibc make check with -Wformat options enabled.

With -Wformat options enabled there are test fails:

  cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
  cc1: all warnings being treated as errors
  ../o-iterator.mk:9: recipe for target
  '/home/abuild/rpmbuild/BUILD/glibc-2.24/cc-base/time/test_time.o' failed

As some targets disables -Wformat explicitly:

(time/Makefile):
  # Don't warn about Y2k problem in strftime format string.
  CFLAGS-test_time.c = -Wno-format

Change-Id: Ic0f8b6bb07ea7875a75b994584ac10cec6515827
packaging/glibc.spec