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)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 3 May 2023 10:47:33 +0000 (19:47 +0900)
commit3702299bc754c4c7fb7697a61148af24d41e7e8b
treee377a1668c9733a8210cc25ba51d0862fcb52fc6
parent8f368fca9a753481d26fa345f208a3b6352b2838
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