diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-04-10 15:24:44 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-04-21 23:18:59 +0200 |
commit | cbb59ed9ce9555e0dc0b485247fe86f0e45006b3 (patch) | |
tree | 66207bb63c8118dea86c8de8019978e24d9981d6 /tests/data/test1103 | |
parent | 5f830eaba0b4c00dabf095cede048ddcea736d9d (diff) |
typecheck-gcc: handle function pointers properly
All the callbacks passed to curl_easy_setopt are defined as function
pointers. The possibility to pass both functions and function pointers
was handled for the callbacks that typecheck-gcc.h defined as
compatible, but not for the public callback types themselves.
This makes all compatible callback types defined in typecheck-gcc.h
function pointers too and checks all functions uniformly with
_curl_callback_compatible, which handles both functions and function
pointers.
A symptom of the problem was a warning in tool_operate.c with
--disable-libcurl-option and without --enable-debug as that file
passes the callback functions to curl_easy_setopt directly.
Fixes https://github.com/curl/curl/issues/1403
Closes https://github.com/curl/curl/pull/1404
Diffstat (limited to 'tests/data/test1103')
0 files changed, 0 insertions, 0 deletions