codemaker/source/cppumaker/cpputype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 99a9c188cc8a95b72e7e8f59e1e48464767ca651 Author: Julien Nabet <[email protected]> AuthorDate: Wed Jul 31 23:11:22 2024 +0200 Commit: Julien Nabet <[email protected]> CommitDate: Fri Aug 2 08:59:17 2024 +0200 tdf#162279: Base Forms: details of the warning only on debug mode As Mike noticed, the pb is more general than just Base forms. So here's the general fix suggested by Mike (thank you for the help!) Change-Id: Ic57039c9c37f26d2ea2d0e0bda89f277ba7044cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171337 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins (cherry picked from commit 572011827a59e93448745294f3fe3eea3e028ffc) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171353 diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 8d67cdc94e11..a2db78363d41 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -2818,7 +2818,7 @@ void ExceptionType::dumpHdlFile( { if (name_ == "com.sun.star.uno.Exception") { - includes.addCustom(u"#if defined(LIBO_INTERNAL_ONLY)"_ustr); + includes.addCustom(u"#if defined(LIBO_INTERNAL_ONLY) && !defined(NDEBUG)"_ustr); includes.addCustom(u"#if __has_include(<version>)"_ustr); includes.addCustom(u"#include <version>"_ustr); includes.addCustom(u"#endif"_ustr);
