Go to file
Viktor Szakats 626365ef82
http: fix -Wunused-variable compiler warning
Fix compiler warnings in builds with disabled auths, NTLM and SPNEGO.

E.g. with `CURL_DISABLE_BASIC_AUTH` + `CURL_DISABLE_BEARER_AUTH` +
`CURL_DISABLE_DIGEST_AUTH` + `CURL_DISABLE_NEGOTIATE_AUTH` +
`CURL_DISABLE_NTLM` on non-Windows.

```
./curl/lib/http.c:737:12: warning: unused variable 'result' [-Wunused-variable]
  CURLcode result = CURLE_OK;
           ^
./curl/lib/http.c:995:18: warning: variable 'availp' set but not used [-Wunused-but-set-variable]
  unsigned long *availp;
                 ^
./curl/lib/http.c:996:16: warning: variable 'authp' set but not used [-Wunused-but-set-variable]
  struct auth *authp;
               ^
```

Regression from e92edfbef6 #11490

Fixes #12228
Closes #12335
2023-11-16 11:50:19 +00:00
.circleci CI: run Circle macOS builds on x86 for now 2023-09-05 22:53:40 -07:00
.github ci: test with latest quiche release (0.19.0) 2023-11-11 23:44:54 +01:00
.reuse tool: use our own stderr variable 2023-09-28 10:50:56 +00:00
CMake build: picky warning updates 2023-11-15 13:00:37 +00:00
docs curl_easy_duphandle.3: clarify how HSTS and alt-svc are duped 2023-11-13 15:36:27 +01:00
include RELEASE-NOTES: synced 2023-10-22 10:58:08 +02:00
lib http: fix -Wunused-variable compiler warning 2023-11-16 11:50:19 +00:00
LICENSES
m4 build: picky warning updates 2023-11-15 13:00:37 +00:00
packages spelling: fix codespell 2.2.6 typos 2023-10-03 21:37:56 +00:00
plan9
projects projects: add VC14.20 project files 2023-11-07 09:29:19 +01:00
scripts build: delete HAVE_STDINT_H and HAVE_INTTYPES_H 2023-11-06 17:20:39 +00:00
src tool: support bold headers in Windows 2023-11-16 03:47:18 -05:00
tests duphandle: use strdup to clone *COPYPOSTFIELDS if size is not set 2023-11-13 17:50:00 +01:00
winbuild build: do not publish HAVE_BORINGSSL, HAVE_AWSLC macros 2023-10-08 22:29:45 +00:00
.azure-pipelines.yml CI: move distcheck job from Azure Pipelines to GitHub Actions 2023-10-08 19:36:16 +02:00
.cirrus.yml .cirrus.yml: freebsd 14 2023-11-14 08:19:02 +01:00
.dcignore
.dir-locals.el
.git-blame-ignore-revs
.gitattributes
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
.mailmap mailmap: unify Michael Osipov under a single email 2023-09-21 14:18:49 +02:00
acinclude.m4 build: variadic macro tidy-ups 2023-10-27 00:37:34 +00:00
appveyor.yml appveyor: make VS2008-built curl tool runnable 2023-11-03 22:53:45 +00:00
buildconf
buildconf.bat
CHANGES
CMakeLists.txt tidy-up: dedupe Windows system libs in cmake 2023-11-11 23:09:22 +00:00
configure.ac HTTP3: ngtcp2 builds are no longer experimental 2023-10-31 14:31:46 +01:00
COPYING
curl-config.in
GIT-INFO
libcurl.def curl_multi_get_handles: get easy handles from a multi handle 2023-09-25 20:16:58 +02:00
libcurl.pc.in
MacOSX-Framework
Makefile.am Makefile: generate the VC 14.20 project files at dist-time 2023-11-11 23:42:36 +01:00
Makefile.dist
maketgz
README
README.md tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
RELEASE-NOTES RELEASE-NOTES: synced 2023-11-13 16:01:12 +01:00
SECURITY.md SECURITY-PROCESS.md. call it vulnerability disclosure policy 2023-09-14 17:04:33 +02:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.