Azure / Azure/azure-sdk-for-cpp

Compilation error in curl/curl.cpp: variable 'performing' may be uninitialized when used

Open
#6,523 1 comment 0 reactions 0 assignees View on GitHub
Azure.Core Client customer-reported needs-team-attention question
Dominant language
C++
Stars
205
Forks
172
Avg merge
1d 3h
Merged PRs (30d)
37

Description

https://github.com/Azure/azure-sdk-for-cpp/blob/27c2e5d335c9306d08aa49bd5fe92d0cc1628fe0/sdk/core/azure-core/src/http/curl/curl.cpp#L346

+++ Compiling: distro/sdk/core/azure-core/src/http/curl/curl.cpp ? private/x86_64.debug/curl.o
distro/sdk/core/azure-core/src/http/curl/curl.cpp:376:7: error: variable 'performing' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
376 | if (performing != CURLE_OK)
| ^~~~~~~~~~
distro/sdk/core/azure-core/src/http/curl/curl.cpp:349:3: note: variable 'performing' is declared here
346 | CURLcode performing;
| ^
1 error generated.
+++

clang version 17.0.6
Target: x86_64-unknown-linux-gnu
Thread model: posix

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.