How to get around GCC ‘*((void*)& b +4)’ may be used uninitialized in this function warning while using boost::optional
There are two levels of uninitialized analysis in gcc: -Wuninitialized: flags variables that are certainly used uninitialized -Wmaybe-uninitialized: flags variables that are potentially used uninitialized In gcc (*), -Wall turns on both levels even though the latter has spurious warnings because the analysis is imperfect. Spurious warnings are a plague, so the simplest way to … Read more