forked from enlightenment/efl
b1e44484a5
Summary: Remove almost all the compilation warnings from C++ code. Only explicit warnings using the `#warning` preprocessor directive remain. Some warnings had to be suppressed with `#pragma` directives because the behavior they were warning about is intended in some specific places. Code comments were added in such situations. Added a generator that creates `#pragma` directives in order to suppress warnings in all generated C++ headers. Currently `-Wignored-qualifiers` is the only warning category being suppressed. The innocuous const qualifiers that it points are inoffensive and have no effect in compilation at all. They are also hard to track in generation since they can emerge from different types in many places. To ease the generation of the warning suppressors an utility constructor was added to `efl::eolian::grammar::attributes::unused_type`. Add constructors to `eolian_mono::class_context` to default initialize its internal string and avoid field initialization warnings. Test Plan: `meson test` Reviewers: lauromoura, felipealmeida, zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl_language_bindings Differential Revision: https://phab.enlightenment.org/D9275 |
||
---|---|---|
.. | ||
eina_cxx_suite.cc | ||
eina_cxx_suite.h | ||
eina_cxx_test_accessor.cc | ||
eina_cxx_test_error.cc | ||
eina_cxx_test_inarray.cc | ||
eina_cxx_test_inlist.cc | ||
eina_cxx_test_iterator.cc | ||
eina_cxx_test_log.cc | ||
eina_cxx_test_optional.cc | ||
eina_cxx_test_ptrarray.cc | ||
eina_cxx_test_ptrlist.cc | ||
eina_cxx_test_stringshare.cc | ||
eina_cxx_test_thread.cc | ||
eina_cxx_test_value.cc | ||
eina_simple.eo | ||
meson.build | ||
simple.c |