mm2 / Little-CMS

A free, open source, CMM engine. It provides fast transforms between ICC profiles.
https://www.littlecms.com
MIT License
549 stars 174 forks source link

fast float: compiler warning about misleading indentation #387

Closed pjanx closed 1 year ago

pjanx commented 1 year ago
../git/submodules/Little-CMS/plugins/fast_float/src/fast_8_tethra.c: In function ‘PerformanceEval8’:
../git/submodules/Little-CMS/plugins/fast_float/src/fast_8_tethra.c:234:57: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
  234 |                                                         else
      |                                                         ^~~~
../git/submodules/Little-CMS/plugins/fast_float/src/fast_8_tethra.c:246:64: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  246 |                                                                Rest = c1 * rx + c2 * ry + c3 * rz + 0x8001;
      |                                                                ^~~~

(This bothers me mostly because I needed a static build.)

mm2 commented 1 year ago

Should be fixed by ca207ee4dd4ec490e8a42431784278917ea93ea7

pjanx commented 1 year ago

Thanks.