Re: [PATCH]: tree-walk.h: Warning fix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Luiz Fernando N. Capitulino <lcapitulino@...>
Cc: <git@...>
Date: Saturday, June 23, 2007 - 2:19 am

"Luiz Fernando N. Capitulino" <lcapitulino@mandriva.com.br>
writes:


Grumble.  Incoming "name" is already (const char*), isn't it?
I'd cast only the sha1 side and apply.

However, I think -Wcast-qual is a pretty useless option.  

The nastiest one, if you care, is exec_cmd.c::execv_git_cmd()
where we never muck with "const char **argv" ourselves, but we
have to call execve(), which takes (char**) as its second
parameter.  We cast away constness for that call; otherwise you
would then get prototype mismatch.

-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH]: tree-walk.h: Warning fix, Luiz Fernando N. Capitulino..., (Tue Jun 19, 10:11 pm)
Re: [PATCH]: tree-walk.h: Warning fix, Junio C Hamano, (Sat Jun 23, 2:19 am)
Re: [PATCH]: tree-walk.h: Warning fix, Luiz Fernando N. Capitulino..., (Sat Jun 23, 10:10 pm)