[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XEN PATCH v9 13/30] xen/tools/kconfig: fix build with -Wdeclaration-after-statement


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Tue, 25 Jan 2022 11:00:46 +0000
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>
  • Delivery-date: Tue, 25 Jan 2022 11:07:42 +0000
  • Ironport-data: A9a23:YIdxmaLPEqQviv8iFE+RDJIlxSXFcZb7ZxGr2PjKsXjdYENSgWMHy zYYXWvUaPmMNmPze41yb4Wz8UNS68TWnNFnHAFlqX01Q3x08seUXt7xwmUcns+xwm8vaGo9s q3yv/GZdJhcokcxIn5BC5C5xZVG/fjgqoHUVaiUakideSc+EH170Us5xrZg6mJVqYPR7z2l6 IuaT/L3YDdJ6xYsWo7Dw/vewP/HlK2aVAIw5jTSV9gS1LPtvyB94KYkDbOwNxPFrrx8RYZWc QphIIaRpQs19z91Yj+sfy2SnkciGtY+NiDW4pZatjTLbrGvaUXe345iXMfwZ3u7hB3Ys/xr2 uUK6qe6cgoAI7bDtMEQYzBhRnQW0a1uoNcrIFC6uM2XiUbHb2Ht07NlC0Re0Y8wo7gtRzsUr LpBdW5LPkvra+GemdpXTsFlgNgjK8/6epsSoHh6wRnSDOo8QICFSKLPjTNd9Glq2JkeTKuCD yYfQR9iQgjrQg8IAWwsN7QnudqimUf7fzIN/Tp5ooJoujOOnWSdyoPFO9PPdtuHbc5chEqfq yTN+GGRKhMQOcGbyDGF2mmxneKJliT+MKoCGbv9+vN0jVm7wm0IFAZQRVa9ueO+iEO1R5RYM UN8x8Y1hfFsrgrxFIC7BkDm5i7f1vIBZzZOO7wWxBuf+u2L2AyiC0EZVTFtTdEWnfZ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/OW6
  • Ironport-sdr: McnHcUqrvVuBtNsy2nBmdrQC5F0zH3331/KGX+mWFR7FMMkEZ3Dll/UQ4mtoB/4ih9Pp+tA9ru kTk2pKYIPKF8UtpS43uSpY5ZR7PAhwCwL0Gzpp95Yr/QdVStxudk1g8FA7+BTwVhvsp5kcRWN1 iYDlDCCekUFz3JaKiOV8M72kQwQZA2sxREblvOGmDB7oTfD+xCe9vRZG0WIk+euq39PdeQNARB TUxilvopxFODnNy/8RFM/bDijsxVImcK0XllW07Sf2cRSSXB0oxn1xIfhqUokODIR66O37Vo/K B2t2lRtJn9SFwvQOihQXDf6n
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

We are going to start building kconfig with HOSTCFLAGS from Config.mk,
it has the flag "-Wdeclaration-after-statement".

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---

Notes:
    v9:
    - reviewed

 xen/tools/kconfig/confdata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/tools/kconfig/confdata.c b/xen/tools/kconfig/confdata.c
index 3569d2dec37c..a69250c91355 100644
--- a/xen/tools/kconfig/confdata.c
+++ b/xen/tools/kconfig/confdata.c
@@ -1237,6 +1237,7 @@ void set_all_choice_values(struct symbol *csym)
 
 bool conf_set_all_new_symbols(enum conf_def_mode mode)
 {
+       bool has_changed = false;
        struct symbol *sym, *csym;
        int i, cnt, pby, pty, ptm;      /* pby: probability of bool     = y
                                         * pty: probability of tristate = y
@@ -1283,7 +1284,6 @@ bool conf_set_all_new_symbols(enum conf_def_mode mode)
                        exit( 1 );
                }
        }
-       bool has_changed = false;
 
        for_all_symbols(i, sym) {
                if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID))
-- 
Anthony PERARD




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.