Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

Re: [PATCH] Teach 'git-apply --whitespace=strip' to remove empty lines at the end of file

From: Josef Weidendorfer <hidden>
Date: 2016-06-15 22:43:11

Possibly related (same subject, not in this thread)

On Sunday 20 May 2007, Marco Costalba wrote:
On 5/20/07, Frank Lichtenheld [off-list ref] wrote:
quoted
quoted
quoted
But we have kept our sources -Wdeclaration-after-statement
clean so far
??????

Wie bitte?
man gcc:

-Wdeclaration-after-statement (C only)
   Warn when a declaration is found after a statement in a block.
Just for my personal knowledge, what's the meaning of this apparently
non-sense kind of warning?
man gcc:

 -Wdeclaration-after-statement (C only)
    Warn when a declaration is found after a statement in a block.  This con-
    struct, known from C++, was introduced with ISO C99 and is by default allowed
    in GCC.  It is not supported by ISO C90 and was not supported by GCC versions
    before GCC 3.0.

There are some C compilers out there which break out with an error when
using declaration after a statement; however, we want git code to compile
even using these compilers.

Josef
Thanks
Marco
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help