codemaker/source/cppumaker/cpputype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 572011827a59e93448745294f3fe3eea3e028ffc Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Wed Jul 31 23:11:22 2024 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Thu Aug 1 11:44:08 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 <mike.kagan...@collabora.com> Tested-by: Jenkins 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);