Skip to content

build: fix compiler warning with auths disabled#12227

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:warn-10
Closed

build: fix compiler warning with auths disabled#12227
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:warn-10

Conversation

@vszakats

@vszakats vszakats commented Oct 29, 2023

Copy link
Copy Markdown
Member
./curl/lib/http.c:979:12: warning: unused function 'is_valid_auth_separator' [-Wunused-function]
static int is_valid_auth_separator(char ch)
           ^
5 warnings generated.

Follow-up to e92edfb #11490

Closes #12227

```
./curl/lib/http.c:737:12: warning: unused variable 'result' [-Wunused-variable]
  CURLcode result = CURLE_OK;
           ^
./curl/lib/http.c:1143:12: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
           ;
           ^
./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;
               ^
./curl/lib/http.c:979:12: warning: unused function 'is_valid_auth_separator' [-Wunused-function]
static int is_valid_auth_separator(char ch)
           ^
5 warnings generated.
```

Follow-up to 0d3956b curl#11895
Follow-up to e92edfb curl#11490

Closes #xxxxx
@github-actions github-actions Bot added the HTTP label Oct 29, 2023
@vszakats

This comment was marked as outdated.

@vszakats vszakats removed the on-hold label Oct 29, 2023
@vszakats vszakats changed the title build: fix compiler warnings with auths disabled build: fix compiler warning with auths disabled Oct 29, 2023
@vszakats vszakats closed this in aca7d80 Oct 30, 2023
@vszakats vszakats deleted the warn-10 branch October 30, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant