mirror of
https://github.com/curl/curl.git
synced 2026-07-23 15:37:16 +03:00
tool_help: Warn if curl and libcurl versions do not match
.. because functionality may be affected if the versions differ. This commit implements TODO 18.7 "warning if curl version is not in sync with libcurl version". Ref: https://github.com/curl/curl/blob/curl-7_64_1/docs/TODO#L1028-L1033 Closes https://github.com/curl/curl/pull/3774
This commit is contained in:
parent
07ba221667
commit
538db66fe2
2 changed files with 4 additions and 8 deletions
|
|
@ -596,6 +596,10 @@ void tool_version_info(void)
|
|||
printf(" %s", featp[i]);
|
||||
puts(""); /* newline */
|
||||
}
|
||||
if(strcmp(CURL_VERSION, curlinfo->version)) {
|
||||
printf("WARNING: curl and libcurl versions do not match. "
|
||||
"Functionality may be affected.\n");
|
||||
}
|
||||
}
|
||||
|
||||
void tool_list_engines(CURL *curl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue