mailinfo: work around -Wstring-plus-int warning
commit85de86a16bd853708658eb13689d913bc377ae3e
authorEric Sunshine <sunshine@sunshineco.com>
Sun, 21 Sep 2014 09:13:58 +0000 (21 05:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Sep 2014 20:46:43 +0000 (22 13:46 -0700)
tree117cad9a185c2229d5b03fa597d554629533c17e
parent2da1f36671c3e3e28eba6a56d92249b6671c07d3
mailinfo: work around -Wstring-plus-int warning

The just-released Apple Xcode 6.0.1 has -Wstring-plus-int enabled by
default which complains about pointer arithmetic applied to a string
literal:

    builtin/mailinfo.c:303:24: warning:
        adding 'long' to a string does not append to the string
            return !memcmp(SAMPLE + (cp - line), cp, strlen(SAMPLE) ...
                           ~~~~~~~^~~~~~~~~~~~~

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailinfo.c