You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C++20 compilers emit a deprecation warning if values from two different enums are combined with a bitwise operation. This may happen when using CURLOPT_SSLVERSION.
The text was updated successfully, but these errors were encountered:
mkauf
changed the title
CURLOPT_SSLVERSION: C++23 deprecation warning when values of two enums are used
CURLOPT_SSLVERSION: C++23 deprecation warning when values of two enums are combined
Apr 30, 2024
C++23 compilers emit a deprecation warning if values from two different
enums are combined with a bitwise operation the way the
CURL_SSLVERSION_* values were previously created.
Reported-by: Michael Kaufmann
Fixes#13510
mkauf
changed the title
CURLOPT_SSLVERSION: C++23 deprecation warning when values of two enums are combined
CURLOPT_SSLVERSION: C++20 deprecation warning when values of two enums are combined
May 2, 2024
I did this
C++20 compilers emit a deprecation warning if values from two different enums are combined with a bitwise operation. This may happen when using
CURLOPT_SSLVERSION
.Example program:
g++:
clang++:
Possible solutions:
CURLOPT_SSLVERSION
in the same enumI expected the following
No compiler warning.
curl/libcurl version
curl master
operating system
Fedora Linux 39
The text was updated successfully, but these errors were encountered: