Skip to content

Dubious logical expression in rsslReactor.c #334

@DuncanSands

Description

@DuncanSands

When compiling RTSDK-2.3.2.L1.linux.rrg, g++ 15.2.0 warns about the code at Eta/Impl/Reactor/rsslReactor.c line 6827:

                                                                    /* If this isn't the first warm standby group (or preferred) and there is a login callback */
                                                                    if (!pWarmStandByHandlerImpl->isInitialConnection == RSSL_TRUE
                                                                            && pReactorWarmStandbyServerInfo->reactorConnectInfoImpl.base.enableSessionManagement == RSSL_FALSE
                                                                            && pStandByReactorChannel->channelRole.ommConsumerRole.pLoginRequestList[pStandByReactorChannel->currentConnectionOpts->base.loginReqIndex]->pLoginRenewalEventCallback != NULL)
                                                                    {

And indeed is that initial exclamation mark supposed to apply to all of the rest, or only to pWarmStandByHandlerImpl->isInitialConnection? g++ suggests adding brackets to clarify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions