053c549fdd
> MSWrite.cpp:1424:63: error: invalid arithmetic between different enumeration types ('MSWriteParserInternal::BitmapFileHeaderOffset' and 'MSWriteParserInternal::BitmapInfoHeaderV2Offset')
> 1424 | unsigned offset = MSWriteParserInternal::BM_FILE_STRUCT_SIZE + MSWriteParserInternal::BM_INFO_V2_STRUCT_SIZE + colors * unsigned(sizeof(MSWriteParserInternal::BitmapPalette));
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etc. as reported now with --with-latest-c++ (i.e., in C++26 mode) by Clang 18
trunk since
<1cbd52f791
>
"[Clang] Implement P2864R2 Remove Deprecated Arithmetic Conversion on
Enumerations (#73105)"
Change-Id: I6307978bc39e0f965144e0df3ac9a28eb817fe10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160552
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
32 lines
947 B
Makefile
32 lines
947 B
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_UnpackedTarball_UnpackedTarball,libwps))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_tarball,libwps,$(WPS_TARBALL)))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_patchlevel,libwps,0))
|
|
|
|
$(eval $(call gb_UnpackedTarball_update_autoconf_configs,libwps))
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_patches,libwps,\
|
|
$(if $(SYSTEM_REVENGE),,external/libwps/rpath.patch.0) \
|
|
external/libwps/libtool.patch.0 \
|
|
external/libwps/enumarith.patch \
|
|
))
|
|
|
|
ifneq ($(OS),MACOSX)
|
|
ifneq ($(OS),WNT)
|
|
$(eval $(call gb_UnpackedTarball_add_patches,libwps,\
|
|
external/libwps/libwps-bundled-soname.patch.0 \
|
|
))
|
|
endif
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|