Thread (21 messages) flat view 21 messages, 5 authors, 2016-06-15

Re: [PATCH 02/11] Fix declare variable at mid of function

From: Reece Dunn <hidden>
Date: 2016-06-15 22:47:15

2009/8/17 Johannes Schindelin [off-list ref]:
Hi,

On Tue, 18 Aug 2009, Frank Li wrote:
quoted
Some compiler such as MSVC can't support declear variable at mid of funtion at c file.
Please wrap your commit messages after 76 characters.
quoted
Signed-off-by: Frank Li <redacted>
---
How about this instead?

       Avoid declaration after instruction

       Microsoft Visual C++ does not understand this C99 style.

?

The patch itself is good.
Shouldn't GCC be changed to use -std=c89 as well to pick up errors for
compilers that don't support c99 (like the Microsoft Visual C++ C
compiler)?

- Reece
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help