facebookincubator / spectrum

A client-side image transcoding library.
https://libspectrum.io
MIT License
1.99k stars 166 forks source link

xplat/spectrum/cpp/test/unit/plugins/jpeg/LibJpegCompressorTest.cpp: initialize in declaration order to placate -Wreorder-init-list #1846

Closed meyering closed 2 years ago

meyering commented 2 years ago

Summary: This avoids the following errors:

xplat/spectrum/cpp/test/unit/plugins/jpeg/LibJpegCompressorTest.cpp:51:15: error: ISO C++ requires field designators to be specified in declaration order; field 'mode' will be initialized after field 'quality' [-Werror,-Wreorder-init-list]

Differential Revision: D38105346

facebook-github-bot commented 2 years ago

This pull request was exported from Phabricator. Differential Revision: D38105346