Skip to content

Fix couple of "missing initializer for member" compile warnings

ivan tkachenko requested to merge work/ratijas/warn into master
/home/ratijas/kde/src6/kwin/src/outputconfigurationstore.cpp:55:9: warning: missing initializer for member ‘KWin::OutputChangeSet::highDynamicRange’ [-Wmissing-field-initializers]
   55 |         };
      |         ^
/home/ratijas/kde/src6/kwin/src/outputconfigurationstore.cpp:55:9: warning: missing initializer for member ‘KWin::OutputChangeSet::sdrBrightness’ [-Wmissing-field-initializers]
/home/ratijas/kde/src6/kwin/src/outputconfigurationstore.cpp:55:9: warning: missing initializer for member ‘KWin::OutputChangeSet::wideColorGamut’ [-Wmissing-field-initializers]

These were just the first 3 (in a group) out of 60+. There are many more "missing initializer for member" warnings in similar situations, mainly KWin::Output::Information type. Uninitialized member may lead to Undefined Behavior, so they are probably worth fixing.

Merge request reports

Loading