Closed trufae closed 2 years ago
should it really be changed? I saw some mentions that this warning could be safely ignored if -Wmissing-field-initializers
is on.
Clang 6.0 suppresses the warning about missing braces. The svn log says:
Suppress -Wmissing-braces warning when aggregate-initializing a struct with a single field that is itself an aggregate. In C++, such initialization of std::array types is guaranteed to work by the standard, is completely idiomatic, and the "suggested" alternative from Clang was technically invalid.
https://stackoverflow.com/questions/13905200/is-it-wise-to-ignore-gcc-clangs-wmissing-braces-warning
some compilers still complain about this, despite the behaviour is correct i always though that was intended. but r2 should build fine with no warnings withuot the need to pass extra compilation flags
ok, will add braces
from https://github.com/radareorg/radare2/runs/6069734630?check_suite_focus=true