Skip to content

wolfssl: fix -Wmissing-prototypes#21392

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:bwolfssl
Closed

wolfssl: fix -Wmissing-prototypes#21392
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:bwolfssl

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Apr 21, 2026

Seen with unity, H3, wolfssl with HAVE_EX_DATA.

Fixing:

lib/vtls/wolfssl.c:412:10: error: no previous prototype for function 'Curl_wssl_cache_session' [-Wmissing-prototypes]
  412 | CURLcode Curl_wssl_cache_session(struct Curl_cfilter *cf,
      |          ^
lib/vtls/wolfssl.c:412:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
  412 | CURLcode Curl_wssl_cache_session(struct Curl_cfilter *cf,
      | ^
      | static
1 error generated.

Follow-up to cc5c155 #19852

```
lib/vtls/wolfssl.c:412:10: error: no previous prototype for function 'Curl_wssl_cache_session' [-Wmissing-prototypes]
  412 | CURLcode Curl_wssl_cache_session(struct Curl_cfilter *cf,
      |          ^
lib/vtls/wolfssl.c:412:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
  412 | CURLcode Curl_wssl_cache_session(struct Curl_cfilter *cf,
      | ^
      | static
1 error generated.
```
@github-actions github-actions Bot added the TLS label Apr 21, 2026
@vszakats vszakats added the build label Apr 21, 2026
@vszakats vszakats changed the title wolfssl: fix rare build error wolfssl: fix build error Apr 21, 2026
@vszakats vszakats changed the title wolfssl: fix build error wolfssl: fix -Wmissing-prototypes Apr 21, 2026
@vszakats vszakats closed this in 5ff7f77 Apr 21, 2026
@vszakats vszakats deleted the bwolfssl branch April 21, 2026 08:10
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