Skip to content
Snippets Groups Projects
Select Git revision
  • f1c23b3b3c1ac363035dd2a269e27822ed00649d
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0032-tools-pkg-config-fix-build-with-GCC-6.patch

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    0032-tools-pkg-config-fix-build-with-GCC-6.patch 1.30 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Sun, 8 May 2016 15:53:14 +0200
    Subject: tools: pkg-config: fix build with GCC 6
    
    Fixes the following error:
    
    gdate.c: In function ‘g_date_strftime’:
    gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
           tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
           ^~~~~~
    
    Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
    
    diff --git a/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch b/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch
    new file mode 100644
    index 0000000..6849299
    --- /dev/null
    +++ b/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch
    @@ -0,0 +1,18 @@
    +--- a/glib/glib/gdate.c
    ++++ b/glib/glib/gdate.c
    +@@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate     *d,
    +  *
    +  * Returns: number of characters written to the buffer, or 0 the buffer was too small
    +  */
    ++#pragma GCC diagnostic push
    ++#pragma GCC diagnostic ignored "-Wformat-nonliteral"
    ++
    + gsize     
    + g_date_strftime (gchar       *s, 
    +                  gsize        slen, 
    +@@ -2549,3 +2552,5 @@ g_date_strftime (gchar       *s,
    +   return retval;
    + #endif
    + }
    ++
    ++#pragma GCC diagnostic pop