From: Junio C Hamano Date: Thu, 08 Nov 2007 01:52:27 GMT Subject: Re: [PATCH MISC 1/1] Make gcc warning about empty if body go away. Message-ID: <7v1wb18pwk.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1194430832-6224-2-git-send-email-madcoder@debian.org> Pierre Habouzit writes: > Signed-off-by: Pierre Habouzit > @@ -204,7 +204,7 @@ static void refresh_index_quietly(void) > if (write_cache(fd, active_cache, active_nr) || > close(fd) || > commit_locked_index(lock_file)) > - ; /* > + (void)0; /* > * silently ignore it -- we haven't mucked > * with the real index. > */ Ok, will apply after reindenting a bit, and adding a quote to the description that I could not parse on the first reading: Make gcc warning about "empty if body" go away. Thanks.