> On Jan 23, 2019, at 5:09 AM, Jann Horn <[email protected]> wrote: > > AFAICS this only applies to switch statements (because they jump to a > case and don't execute stuff at the start of the block), not blocks > after if/while/... . It bothers me that we are going out of our way to deprecate valid C constructs in favor of placing the declarations elsewhere. As current compiler warnings would catch any reference before initialization usage anyway, it seems like we are letting a compiler warning rather than the language standard dictate syntax. Certainly if we want to make it a best practice coding style issue we can, and then an appropriate note explaining why should be added to Documentation/process/coding-style.rst. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- [ovs-dev] [PATCH 0/3] gcc-plugins: Introduce stackinit p... Kees Cook
- [ovs-dev] [PATCH 3/3] lib: Introduce test_stackinit... Kees Cook
- [ovs-dev] [PATCH 2/3] gcc-plugins: Introduce stacki... Kees Cook
- [ovs-dev] [PATCH 1/3] treewide: Lift switch variabl... Kees Cook
- Re: [ovs-dev] [PATCH 1/3] treewide: Lift switch... Greg KH
- Re: [ovs-dev] [PATCH 1/3] treewide: Lift sw... Jann Horn via dev
- Re: [ovs-dev] [PATCH 1/3] treewide: Lif... Ard Biesheuvel
- Re: [ovs-dev] [PATCH 1/3] treewide: Lif... William Kucharski
- Re: [ovs-dev] [Intel-gfx] [PATCH 1/3] treew... Jani Nikula
- Re: [ovs-dev] [Intel-gfx] [PATCH 1/3] t... Jani Nikula
- Re: [ovs-dev] [Intel-gfx] [PATCH 1/3] t... Edwin Zimmerman
- Re: [ovs-dev] [Intel-gfx] [PATCH 1... Jani Nikula
- Re: [ovs-dev] [Intel-gfx] [PAT... Kees Cook
- Re: [ovs-dev] [Intel-gfx] ... Greg KH
- Re: [ovs-dev] [Intel-gfx] [PATCH 1/3] t... Matthew Wilcox
- Re: [ovs-dev] [Intel-gfx] [PATCH 1... Kees Cook
- Re: [ovs-dev] [Intel-wired-lan] [PATCH 1/3] tre... Jeff Kirsher
- Re: [ovs-dev] [PATCH 1/3] treewide: Lift switch... Edwin Zimmerman
