https://github.com/git/git
Revision ef563de6dd6997b913d5c87f6caf09db7e44bdcd authored by Ramsay Jones on 21 November 2011, 18:42:09 UTC, committed by Junio C Hamano on 21 November 2011, 19:00:57 UTC
The git_path_check_eol() function converts a string value to the
corresponding 'enum eol' value. However, the function is currently
declared to return an 'enum crlf_action', which causes sparse to
complain thus:

        SP convert.c
    convert.c:736:50: warning: mixing different enum types
    convert.c:736:50:     int enum crlf_action  versus
    convert.c:736:50:     int enum eol

In order to suppress the warning, we simply correct the return type
in the function declaration.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e4ac953
History
Tip revision: ef563de6dd6997b913d5c87f6caf09db7e44bdcd authored by Ramsay Jones on 21 November 2011, 18:42:09 UTC
convert.c: Fix return type of git_path_check_eol()
Tip revision: ef563de
File Mode Size
sha1.c -rw-r--r-- 1.4 KB
sha1.h -rw-r--r-- 559 bytes
sha1ppc.S -rw-r--r-- 7.3 KB

back to top