[hipl-dev] C++/C99-style mixed declarations and statements

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Fri, 04 Mar 2011 17:31:34 +0100

We have the following in HACKING:
 
- Declare variables right after beginning brace, not in the middle
  of the code:

but there are many instances of this rule being broken in HIPL.

Shall we enable the gcc warning -Wdeclaration-after-statement that
complains about such C++/C99-style mixing of declarations and
statements?

Diego

Other related posts: