Skip to content

Fix maybe-uninitialized compilation error in CMS_2023_I2703254

While checking @20DM mpl fixes, I couldn't compile CMS_2023_I2703254 with gcc (GCC) 13.2.1 20230801 getting errors like:

pluginCMS/CMS_2023_I2703254.cc:165:41: Fehler: »lfind2« könnte uninitialisiert verwendet werden [-Werror=maybe-uninitialized]
  165 |             if (!(( i == lfind1) || ( i == lfind2))){
      |                                     ~~~~^~~~~~~~~~
pluginCMS/CMS_2023_I2703254.cc:150:22: Anmerkung: »lfind2« wurde hier deklariert
  150 |       size_t lfind1, lfind2; double minwmasdiff = 9999.;

this is fixed in this MR.

P.S. I hope the errors are clear, even though I seem to have installed a german compiler recently.

Merge request reports