Skip to content

Add missing brackets for noDelay option

Just noticed this warning while working on !2 (merged):

IPL4asp_PT.cc: In member function ‘virtual void IPL4asp__PortType::IPL4asp__PT_PROVIDER::set_parameter(const char*, const char*)’:
IPL4asp_PT.cc:962:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  962 |    if (!strcasecmp(parameter_value,"YES"))
      |    ^~
IPL4asp_PT.cc:964:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  964 |       globalConnOpts.sctp_nodelay = GlobalConnOpts::YES;
      |       ^~~~~~~~~~~~~~

Merge request reports

Loading