summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-09-24 12:16:36 +0300
committerStephan Bergmann <sbergman@redhat.com>2023-09-29 16:45:08 +0200
commit5a40abc86b94c0be5b4a252c6ab5b0b0df6e520d (patch)
treef8aeac628b0b3629faa21c4787885a0166520d39 /vcl/unx
parentef5cb6cdcd50942aea56ffb322bc89a4c7069bc6 (diff)
Drop some newly obsolete __cplusplus version checks
...after 1eef07805021b7ca26a1a8894809b6d995747ba1 "Bump baseline to C++20". Which revealed that at least for VS 2019 16.11.30 (but not for at least VS 2022 17.7.4), in /clr mode (e.g., when compiling cli_ure/source/climaker/climaker_app.cxx), the -std:c++20 is effectively ignored, and compilation of such source files failed with > include\rtl/string.hxx(191): error C2955: 'rtl::OStringLiteral': use of class template requires template argument list > include\rtl/string.hxx(88): note: see declaration of 'rtl::OStringLiteral' > include\rtl/string.hxx(191): error C7592: a non-type template-parameter of type 'rtl::OStringLiteral' requires at least '/std:c++20' > include\rtl/string.hxx(397): error C2955: 'rtl::OStringLiteral': use of class template requires template argument list > include\rtl/string.hxx(88): note: see declaration of 'rtl::OStringLiteral' etc. To work around that, keep the 27d1f3ac016d77d3c907cebedca558308f366855 "O[U]String literals (unusable for now, C++20 only)" functionality disabled when compiling /clr sources (i.e., where _MANAGED is defined) for that old compiler. Change-Id: If62ceef5f8e55a828b880f197111fe387e4953fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157205 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/customcellrenderer.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/unx/gtk3/customcellrenderer.cxx b/vcl/unx/gtk3/customcellrenderer.cxx
index 7632c7641538..a6559f99ce99 100644
--- a/vcl/unx/gtk3/customcellrenderer.cxx
+++ b/vcl/unx/gtk3/customcellrenderer.cxx
@@ -26,14 +26,12 @@ enum
};
}
-#if defined __clang__ && __cplusplus >= 202002L && GLIB_MAJOR_VERSION == 2 \
- && GLIB_MINOR_VERSION < 68
+#if defined __clang__ && GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 68
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-volatile"
#endif
G_DEFINE_TYPE(CustomCellRenderer, custom_cell_renderer, GTK_TYPE_CELL_RENDERER_TEXT)
-#if defined __clang__ && __cplusplus >= 202002L && GLIB_MAJOR_VERSION == 2 \
- && GLIB_MINOR_VERSION < 68
+#if defined __clang__ && GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 68
#pragma clang diagnostic pop
#endif
td> 2020-04-03loplugin:flatten in openclNoel Grandin 2020-02-07merge OpenGLZone and OpenCLZone into one generic codeLuboš Luňák 2020-01-28New loplugin:unsignedcompareStephan Bergmann 2019-12-11pickBestDevice return is ignoredCaolán McNamara 2019-12-11ensure cache dir is createdCaolán McNamara 2019-11-26Remove unused OpenCLEnv::mpOclCmdQueueStephan Bergmann 2019-10-19Directly use OUStringBuffer::append overload taking a single sal_UnicodeStephan Bergmann 2019-10-17Remove some memset callsMike Kaganski 2019-10-17Rename OUStringLiteral1 to OUStringCharStephan Bergmann 2019-10-14Fix misuse of OStringLiteralStephan Bergmann 2019-10-14loplugin:stringadd look for unnecessary temporariesNoel Grandin 2019-09-18-Werror=volatile in OpenCLZoneStephan Bergmann 2019-08-20loplugin:constvars in i18npool..openclNoel Grandin 2019-07-23Fix typosAndrea Gelmini 2019-05-29tdf#42949 Fix IWYU warnings in opencl/Gabor Kelemen 2019-05-22New loplugin:dataStephan Bergmann 2019-04-29test in a separate helper process if OpenCL crashes (tdf#112252)Luboš Luňák