Skip to content

Commit 47ae2c0

Browse files
derrickstoleemjcheetham
authored andcommitted
sparse: avoid warnings about known cURL issues in gvfs-helper.c
`sparse` complains with an error message like this: gvfs-helper.c:2912:17: error: expression using sizeof on a function The culprit is this line: curl_easy_setopt(slot->curl, CURLOPT_WRITEFUNCTION, fwrite); Similar lines exist in `http-push.c` and other files that are in upstream Git, and to avoid these bogus warnings, they are already exempted from `sparse`'s tender, loving care. We simply add `gvfs-helper.c` to that list. Signed-off-by: Derrick Stolee <[email protected]>
1 parent e1797f8 commit 47ae2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2908,7 +2908,7 @@ gettext.sp gettext.s gettext.o: GIT-PREFIX
29082908
gettext.sp gettext.s gettext.o: EXTRA_CPPFLAGS = \
29092909
-DGIT_LOCALE_PATH='"$(localedir_relative_SQ)"'
29102910

2911-
http-push.sp http.sp http-walker.sp remote-curl.sp imap-send.sp: SP_EXTRA_FLAGS += \
2911+
http-push.sp http.sp http-walker.sp remote-curl.sp imap-send.sp gvfs-helper.sp: SP_EXTRA_FLAGS += \
29122912
-DCURL_DISABLE_TYPECHECK
29132913

29142914
pack-revindex.sp: SP_EXTRA_FLAGS += -Wno-memcpy-max-count

0 commit comments

Comments
 (0)