On 06/10/2015 01:09 PM, Matthieu Moy wrote:
Junio C Hamano <gits...@pobox.com> writes:
> Don't do that. Always start your function like so:
>
> type funcname(args)
> {
> declarations;
>
> first statement;
> ...
Hint: create a file config.mak with this content:
$ cat config.mak
CFLAGS += -Wdeclaration-after-statement -Wall -Werror
and gcc will prevent you from doing this mistake again.
Thanks a lot!
Your tips are brilliant.
--
Regards,
Karthik
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html