]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: spoe: fix build warning on older gcc around sub-struct initialization
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Oct 2024 13:10:45 +0000 (15:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Oct 2024 13:12:59 +0000 (15:12 +0200)
commita1d0e58b06c1b464d587996143c6257656d93e6b
treef8769287cc769ac1a23a423fff6119df03dc4a82
parentb5b40a9843e505ed84153327ab897ca0e8d9a571
BUILD: spoe: fix build warning on older gcc around sub-struct initialization

gcc-4.8 is unhappy with the cfg_file initialization:

  src/flt_spoe.c: In function 'parse_spoe_flt':
  src/flt_spoe.c:2202:9: warning: missing braces around initializer [-Wmissing-braces]
    struct cfgfile      cfg_file = {0};
         ^
  src/flt_spoe.c:2202:9: warning: (near initialization for 'cfg_file.list') [-Wmissing-braces]

This is due to the embedded list member. Initializing it to empty like
we do almost everywhere else makes it happy. No backport is needed as
this was changed in 3.1-dev5 only.
src/flt_spoe.c