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: Frank Lichtenheld <hidden>
Date: 2016-06-15 22:43:11

Possibly related (same subject, not in this thread)

On Sun, May 20, 2007 at 08:56:49PM +0200, Marco Costalba wrote:
On 5/20/07, Junio C Hamano [off-list ref] wrote:
quoted
quoted
              if (offset >= 0) {
+
+                     if (desc->size - oldsize - offset == 0) /* end of 
file? */
quoted
+                             newsize -= trailing_added_lines;
+
                      int diff = newsize - oldsize;
                      unsigned long size = desc->size + diff;
                      unsigned long alloc = desc->alloc;
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.

Gruesse,
-- 
Frank Lichtenheld [off-list ref]
www: http://www.djpig.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help