Issue 81643
Summary Relax -Wreorder-init-list for POD datatypes
Labels new issue
Assignees
Reporter pirama-arumuga-nainar
    -Wreorder-init-list warns if fields in an initializer list are set out of order.  The potential bugs are always related to initialization order of non-POD fields.

There are numerous instances of this warning in the Android codebase and majority are for POD types - drowning the few cases that need to be fixed.  Secondly, due to historical reason, one of these POD structs has different order of fields for 32-vs-64-bit so it's infeasible to fix these warnings in a reasonable fashion.
 
To make this warning more useful for Android (and maybe other platforms), can we relax this warning for POD datatypes?  Another option is to possibly create a sub-warning that only warns on POD types that can be disabled in Android's build system?

(cc: @enh-google @ZijunZhaoCCK @AaronBallman )
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to