Jiri Daněk created PROTON-2715:
----------------------------------

             Summary: Compilation failure on Fedora 38 with clang, 
cpp/examples/flow_control.cpp:65:18: error: variable 'i' set but not used 
[-Werror,-Wunused-but-set-variable]
                 Key: PROTON-2715
                 URL: https://issues.apache.org/jira/browse/PROTON-2715
             Project: Qpid Proton
          Issue Type: Bug
          Components: cpp-binding, examples
    Affects Versions: proton-c-0.39.0
         Environment: clang --version: clang version 16.0.0 (Fedora 
16.0.0-2.fc38)
            Reporter: Jiri Daněk
            Assignee: Jiri Daněk


Some for loops just silently scream to be let out as while

{noformat}
[ 83%] Building CXX object 
cpp/examples/CMakeFiles/tracing_server.dir/tracing_server.cpp.o
/home/jdanek/repos/qpid/qpid-proton/cpp/examples/flow_control.cpp:65:18: error: 
variable 'i' set but not used [-Werror,-Wunused-but-set-variable]
        for (int i = sequence; available && s.credit() > 0; i++) {
                 ^
1 error generated.
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to