sync Curl_trc_ws guard with declaration

```
lib/curl_trc.c:637:6: error: no previous prototype for function 'Curl_trc_ws' [-Werror,-Wmissing-prototypes]
  637 | void Curl_trc_ws(struct Curl_easy *data, const char *fmt, ...)
      |      ^
lib/curl_trc.c:637:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
  637 | void Curl_trc_ws(struct Curl_easy *data, const char *fmt, ...)
      | ^
      | static
```

options='-DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_BASIC_AUTH=ON -DCURL_DISABLE_CA_SEARCH=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_FTP=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_GOPHER=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_IMAP=ON -DCURL_DISABLE_INSTALL=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_MQTT=ON -DCURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_POP3=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_PROXY=ON -DCURL_DISABLE_RTSP=ON -DCURL_DISABLE_SRP=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DCURL_DISABLE_WEBSOCKETS=ON -DENABLE_UNICODE=ON -DHTTP_ONLY=ON -DUSE_SSLS_EXPORT=ON -DENABLE_UNIX_SOCKETS=OFF'
This commit is contained in:
Viktor Szakats 2025-07-18 18:21:34 +02:00
parent 1c48966315
commit 4cb031f1f6
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -633,7 +633,7 @@ void Curl_trc_smtp(struct Curl_easy *data, const char *fmt, ...)
(void)data; (void)fmt;
}
#endif
#if !defined(CURL_DISABLE_WEBSOCKETS) || !defined(CURL_DISABLE_HTTP)
#if !defined(CURL_DISABLE_WEBSOCKETS) && !defined(CURL_DISABLE_HTTP)
void Curl_trc_ws(struct Curl_easy *data, const char *fmt, ...)
{
(void)data; (void)fmt;