Skip to content

url: fix -Wzero-length-array with no protocols#12344

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:fix-warn-no-proto
Closed

url: fix -Wzero-length-array with no protocols#12344
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:fix-warn-no-proto

Conversation

@vszakats

@vszakats vszakats commented Nov 16, 2023

Copy link
Copy Markdown
Member

Fixes:

./lib/url.c:178:56: warning: use of an empty initializer is a C2x extension [-Wc2x-extensions]
  178 | static const struct Curl_handler * const protocols[] = {
      |                                                        ^
./lib/url.c:178:56: warning: zero size arrays are an extension [-Wzero-length-array]

Closes #12344

Fixes:
```
./lib/url.c:178:56: warning: use of an empty initializer is a C2x extension [-Wc2x-extensions]
  178 | static const struct Curl_handler * const protocols[] = {
      |                                                        ^
./lib/url.c:178:56: warning: zero size arrays are an extension [-Wzero-length-array]
```

Closes #xxxxx
@vszakats vszakats added the build label Nov 16, 2023
@vszakats vszakats closed this in a5daac6 Nov 17, 2023
@vszakats vszakats deleted the fix-warn-no-proto branch November 17, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant