Enable Clang -Wembedded-directive

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 8 January 2020 09:37 EST

...which might have helped avoid the confusion with patch set 6 of "python3: upgrade to release 3.7.6", in that it would have reported:

> pyuno/source/module/pyuno.cxx:340:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] > #if PY_VERSION_HEX >= 0x030200f0 > ^ > pyuno/source/module/pyuno.cxx:342:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] > #else > ^

(-Wembedded-directive was introduced with "Add a warning flag for ext_embedded_directive. gcc considers this undefined" in 2011, so should be available in all versions of Clang relevant for us.)

Change-Id: I4d90212aac30ba8715496d8c99cc6de05c6dc99a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86394

0376acf23308 Enable Clang -Wembedded-directive
solenv/gbuild/platform/com_GCC_defs.mk | 2 ++
1 file changed, 2 insertions(+)

Upstream: cgit.freedesktop.org


  • Share