80 Commits

Author SHA1 Message Date
David Tardon
2c1ae44189 upload boost 1.63.0
Change-Id: I7f896bb9650f68626b4bcfe96c9c41fafeab436a
Reviewed-on: https://gerrit.libreoffice.org/33827
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-03 08:17:06 +00:00
Jochen Nitschke
e87071ac57 replace boost::checked_deleter with std::default_delete
and remove all traces of boost/checked_delete.hpp

Change-Id: I4486d0e07a7197d75f8739c8c6d79670163eaab2
Reviewed-on: https://gerrit.libreoffice.org/33182
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-01-17 20:24:17 +00:00
Stephan Bergmann
50eb12a8e3 external/boost: Silence -fsanitize=nonnull-attribute
...as reported e.g. during CppunitTest_sw_odfimport:

> /workdir/UnpackedTarball/boost/boost/circular_buffer/debug.hpp:37:17: runtime error: null pointer passed as argument 1, which is declared to never be null
> /usr/include/string.h:62:62: note: nonnull attribute specified here
>     #0 0x2b24bc0e6389 in void boost::cb_details::do_fill_uninitialized_memory<SwFrameFormat*>(SwFrameFormat**, unsigned long) /workdir/UnpackedTarball/boost/boost/circular_buffer/debug.hpp:37:5
>     #1 0x2b24bc0e5b48 in boost::circular_buffer<SwFrameFormat*, std::allocator<SwFrameFormat*> >::allocate(unsigned long) /workdir/UnpackedTarball/boost/boost/circular_buffer/base.hpp:2375:9
>     #2 0x2b24bc0e545a in boost::circular_buffer<SwFrameFormat*, std::allocator<SwFrameFormat*> >::initialize_buffer(unsigned long) /workdir/UnpackedTarball/boost/boost/circular_buffer/base.hpp:2482:18
>     #3 0x2b24bc0cfaa7 in boost::circular_buffer<SwFrameFormat*, std::allocator<SwFrameFormat*> >::circular_buffer(unsigned long, std::allocator<SwFrameFormat*> const&) /workdir/UnpackedTarball/boost/boost/circular_buffer/base.hpp:1036:9
>     #4 0x2b24bc068cd7 in AppendAllObjs(SwFrameFormats const*, SwFrame const*) /sw/source/core/layout/frmtool.cxx:1100:44
...

Change-Id: Id96a6127990548ab0ae2e8a02b7bec2d61094c37
2017-01-08 15:57:23 +01:00
Michael Stahl
fae3b4cc19 boost: update generated wrapper headers
... and delete recently added clang Wundef patch

Change-Id: I83af127fe98ff23feb944eb68dbd2334d23564c8
2016-08-29 18:29:42 +02:00
Jan-Marek Glogowski
9dd45f9e31 Fixup clang Werror boost build on MacOSX
Fixes the Boost::Tuple header used by Boost::MultiIndex.

Change-Id: I98eb047e699e04934ee09323633e28cecef84e70
2016-08-29 13:13:13 +02:00
Stephan Bergmann
a61063ca2c Drop warning-related parts of external/boost/clang-cl.patch.0
...which are no longer necessary after e5c6574f5df8d2a5914beb03dce604beb8d62ee8
"boost: warning-patch-ectomy"

Change-Id: I4e79a4c7b9b20f9b49dc05e6a86831837aa4bbf0
2016-05-31 17:45:58 +02:00
Michael Stahl
ac5fd13937 boost: restore boost.gcc47679.patch
One of the tinderboxes fails with mysterious warning:

include/tools/gen.hxx:418:36: error: '*((void*)& aViewportExt +16)' may
be used uninitialized in this function [-Werror=maybe-uninitialized]
     nBottom = rSize.Height() ? nTop+rSize.Height()-1 : RECT_EMPTY;

Change-Id: I62bf99d1a623ba4bd9d7db5fe049366d0f20e26f
2016-05-30 17:49:20 +02:00
Michael Stahl
e5c6574f5d boost: warning-patch-ectomy
Upstream maintainers, with few exceptions, generally don't care about
warnings in boost headers, hence we re-base our warning fix patches on
every upgrade, which is a pointless exercise in frustration.

Most of the patches are for GCC/Clang warnings, where we could use
-isystem to suppress the warnings (with corresponding hacks in the build
system, because -isystem also disables dependency generation) - but
clang-cl does not support -isystem.

So generate a bunch of wrapper headers into external/boost/include, that
disable all known warnings and use #include_next to get the real boost
header. This allows us to get rid of most of the existing patches.

There is however a bug in GCC that preprocessor warnings like -Wundef
cannot be disabled with a #pragma, so those patches cannot be removed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

Change-Id: I2992bf4a463015f1140489df867bd80757f84541
Reviewed-on: https://gerrit.libreoffice.org/25563
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 15:34:51 +00:00
Michael Stahl
aa0b05f185 boost: remove boost.std.move.patch
Apparently required only on obsolete/unsupported Mac OS X versions.

Change-Id: I68540e3ac0d6830ed42854def0367a17f15feacd
2016-05-30 09:45:43 +02:00
Michael Stahl
423f709ad7 boost: remove patches for headers that are no longer used
The following libraries are mostly or completely unused on current
master, in MSVC 2013 and GCC builds:

* crc
* dynamic_bitset
* ptr_container
* random
* signal2

That's much less removal than we hoped, but it turns out that a lot of
boost headers include other boost headers, so removing includes in LO
code only goes this far.

Also move one property_tree hunk from a wrong patch file to more
approriate one.

Change-Id: I6ad3a5987b025a57ca92402cca9a0e1f659128e9
Reviewed-on: https://gerrit.libreoffice.org/25513
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-26 18:25:55 +00:00
Caolán McNamara
52909035af have another stab at fixing the -Wimplicit-fallthrough in json_parser
without triggering a -Wimplicit-fallthrough in unreachable code

Change-Id: I971272ffcf87d7224265a9a3ae87fcf8129c7a7a
2016-05-12 12:37:53 +01:00
Caolán McNamara
eacea16a6c have a stab at fixing the -Wimplicit-fallthrough in json_parser
Change-Id: I2e6909cd804159a3540de4eb8ddecc1bd9131457
2016-05-12 11:36:31 +01:00
Stephan Bergmann
4e8a0a75f4 Missing include
Change-Id: If7abf2ad3ac738e7103491e38a0e53ba424f5550
2016-05-11 09:44:40 +02:00
Stephan Bergmann
e4bb2b4f48 Note pull request for boost patch
Change-Id: I92a98bb196c9f6e7dfdca7008a34fb4fd3e10799
2016-05-10 16:15:25 +02:00
Stephan Bergmann
fcbd824f1b Use BOOST_FALLTHROUGH in external code
...in preparation of enabling Clang's -Wimplicit-fallthrough

Change-Id: If64f9b18591b3cd2528adc6c2d6011d509d4afcd
2016-05-10 15:25:12 +02:00
David Tardon
07b3d72efa Boost.Thread appears to be unneeded
Change-Id: I62ec68ed2ff67ac62137de2fcd7106ada90721ae
2016-03-08 09:06:52 +01:00
David Tardon
23d2e0e8ca follow the boost lib naming scheme for DateTime too
Change-Id: Iae7967bd5f161ecbe888824a4bcb9b87ec8d947a
2016-03-08 08:39:55 +01:00
Kohei Yoshida
b325b4c286 Update liborcus to 0.11.0.
Markus did half of this, and I simply carried the torch.

Change-Id: Icd3ee1e4b5bd562faee06dfd9dce52a4bed49a71
Reviewed-on: https://gerrit.libreoffice.org/22943
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2016-03-08 04:43:24 +00:00
Stephan Bergmann
6b68df5763 Adapt to more warnings being enabled for clang-cl
Change-Id: I62b1e2f5b4918514a7a04bb6a44e55fc21a475af
2016-03-04 10:11:15 +01:00
Stephan Bergmann
229caecce4 Adapt clang-cl.patch.0 to Boost 1.60
Change-Id: If079016bf90d593886c11366626f7c4a06ede8be
2016-02-26 08:51:40 +01:00
Michael Stahl
ee5b0e6c97 boost: restore auto_ptr patch for boost::spirit
Change-Id: If70658c568e746ab8923f8e6a5ad3407bd5e94a0
2016-02-01 15:30:32 +01:00
David Ostrovsky
cf888f3635 And now put the patch in the right location
Change-Id: Ie4bf00eeaf152192d8f4fcf6b1d03d474e9d1faa
2016-01-30 17:52:59 +01:00
David Ostrovsky
7fe147a33b Blind attempt to fix build breakage on android
Change-Id: I4dd55a14a94e5030583f640972440fb37a7b2448
2016-01-30 16:21:09 +01:00
David Ostrovsky
70d49424b8 Bump boost version to 1.60
Change-Id: I9c6e55e2e09d72f6d02c985955ca84b59628ed15
Reviewed-on: https://gerrit.libreoffice.org/21903
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: David Ostrovsky <david@ostrovsky.org>
2016-01-30 11:43:27 +00:00
Stephan Bergmann
dda3fc05a2 Fix for Jenkins Gerrit Mac builds
...which choke on

  #pragma GCC diagnostic ignored "-Wpragmas"

Change-Id: I40100b43078320b79cb9e3d4e3fb369db0bed9fe
2016-01-21 07:57:44 +01:00
Stephan Bergmann
356599d2e1 Remove bogus addition from prev commit
Change-Id: I9b1aa86e3cb325b07158e3994a961db8ea4114d8
2016-01-19 12:12:28 +01:00
Stephan Bergmann
2c9d652dc7 Does that help old GCC that don't know -Wplacement-new
...and would thus error out with -Werror=pragmas?

Change-Id: I113c43bed4d6d0c03e4c3c68684c50fd386428d9
2016-01-19 12:01:08 +01:00
Stephan Bergmann
92969eaa56 external/boost: silence some GCC 6 warnings
Change-Id: I4613f013c39e439dd11d3abc3737511cb8788d4f
2016-01-19 11:45:08 +01:00
Michael Stahl
d8fb3ed5fa boost: suppress auto_ptr deprecation warnings in boost::spirit
Apparently GCC 5.3.1 has turned these annoyances into actual warnings
that convert to errors with -Werror.

Change-Id: Ib1567b3fc2cf33a0f6cffac116a06d73912b84df
2015-12-15 20:18:46 +01:00
Stephan Bergmann
97c8458b43 boost/external: More fixes for clang-cl
* Avoid errors about (somewhat different, but apparently in a way that MSVC
  doesn't care) redeclarations of system header stuff (and working around that
  with BOOST_USE_WINDOWS_H would lead to other problems).

* Need the workaround for broken MSVC 2010 STL iterator taxonomy for clang-cl,
  too.

Change-Id: I4f9c9b5cc8a19856cc409450aac1fb1baa5554c9
2015-12-02 08:02:27 +01:00
Stephan Bergmann
0c70c7d3df external/boost: Work around -Werror,-Winvalid-constexpr
Change-Id: I819be5efb25632d26fe49a71dbc07fe16e4914b1
2015-12-02 08:02:27 +01:00
Stephan Bergmann
9b421ef6de external/boost: Adapt to clang-cl
Change-Id: Ib07e85bd1a157b6fa78f07a17f8cf5033b01bddf
2015-11-13 10:29:04 +01:00
David Ostrovsky
e00a3a684e core: fix build with system boost 1.59
9a6cdce37e601b1406c71fef16ad9b315045c9da was trying to fix the problem
with exposing deprecated vars and functions in system's error_code.hpp
include file by patching bundled boost version.  This approach would
only make sense, when upstream version is going to be fixed ASAP. Apply
another approach, and follow the same pattern as applied in external
libraries, by defining

  -DBOOST_ERROR_CODE_HEADER_ONLY \
  -DBOOST_SYSTEM_NO_DEPRECATED

instead of patching bundled boost version.  This way, the code would
work with unpatched system boost 1.59 final as well.

Change-Id: I8684ca458ea4a5b7d7c3c3acfe7c14a6d19bc665
Reviewed-on: https://gerrit.libreoffice.org/18201
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: David Ostrovsky <david@ostrovsky.org>
2015-09-01 07:51:43 +00:00
David Ostrovsky
9a6cdce37e Bump boost to 1.59 final release
Change-Id: Id71e098dd2356043d2b5fee0736ebfedb5c8c1cd
Reviewed-on: https://gerrit.libreoffice.org/18050
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: David Ostrovsky <david@ostrovsky.org>
2015-08-29 08:43:14 +00:00
Michael Stahl
168bf78980 boost: fix Clang > 3.5 -Wunused-local-typedefs in concept_check
Change-Id: I84ee651a51e1919be036ffd47d80eb1ab7433973
2015-07-31 14:45:38 +02:00
David Ostrovsky
5f321b5011 Bump boost to 1.59
1.59 upcoming release is needed for MSVC 14.0 (aka VS 2015) support.

There is a known breakage on MSVC with boost::none instance in
optional library.  Use not documented define as explained in this
issue upstream [1]: BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE.

[1] https://svn.boost.org/trac/boost/ticket/11203

Change-Id: I25b1797da93f7959d15a70105d67100e0e2c4b3b
Reviewed-on: https://gerrit.libreoffice.org/17056
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2015-07-30 15:24:45 +02:00
Michael Stahl
d8dd6db19a gbuild: set _WIN32_WINNT globally instead of WINVER
... and remove the definitions in makefiles, except in fpicker, which
defines a different value for the Vista file picker.

The WINVER value is derived automatically from _WIN32_WINNT by SDK
header sdkddkver.h.

Change-Id: I73358a9bf5d070f71821654cae2a29335a754a21
2015-03-05 15:36:46 +01:00
Stephan Bergmann
875dc064aa external/boost: Visible function type RTTI for Clang -fsanitize=function
Change-Id: I6a1ab01bbe5cd128b132c3f6dde4b520ddb4c373
2015-01-26 15:17:29 +01:00
Stephan Bergmann
e52948e7b7 external/boost: Work around -fsanitize=bool
Change-Id: I4a34c2ced30770dace39ffd39a530f719174ca7e
2015-01-07 17:49:52 +01:00
Stephan Bergmann
b3a6a93abb external/boost: WaE
Change-Id: Iffc69577f12020c60bf5db1f740ec3fec43c3d8e
2014-11-13 16:56:19 +01:00
Stephan Bergmann
8b3bb1ee9d Even latest Clang only claims GCC 4.2
Change-Id: I70d117f62b91c4d413add44368836c870f203f28
2014-10-06 09:29:10 +02:00
Tor Lillqvist
54ae614e3f WaE: -Wshadow
Change-Id: I3a9e01237d8cade5d99955f02c01c25618ccd9de
2014-10-03 10:12:10 +03:00
Michael Stahl
3b59dbbffd remove HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE check and macro
This is supported in GCC 4.6.0 already:
https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Diagnostic-Pragmas.html

Change-Id: I2f67e588eea3a323a2e9c81e39e56ab2e715a817
2014-10-02 20:00:18 +02:00
Stephan Bergmann
f08f0d1583 Forgot to add patch file
Change-Id: Ia7c09a5bac9b644814b8c4891bb958e28937fa33
2014-09-15 18:49:20 +02:00
Stephan Bergmann
b7502a61aa -Werror,-Wunused-local-typedef in forced-C++03 CppunitTest_odk_checkapi
Change-Id: I951535c82c12be74d96c4e6c6b94dccf09982054
2014-09-15 18:22:37 +02:00
Caolán McNamara
924a2689b3 WaE: -Wshadow signals2
Change-Id: Ib5e6d1e75322dad23f4bb379b8db6dfa4bf18bb0
2014-09-15 09:16:42 +01:00
Luboš Luňák
4443993c06 avoid warnings with boost signals2
Change-Id: I003f4f951d3b4007bc11ac957ac88bf92d87aab3
2014-09-14 22:07:07 +02:00
Thomas Arnhold
1f1dfcdc91 boost: update patch states
Change-Id: I08d9692f42bd5bbce2d0c893b2eaf7eb65d4f2aa
2014-08-17 05:15:29 +02:00
Caolán McNamara
bcbd2d65f5 fix higher debug levels build
Change-Id: If002fa0140174e43128469fc0af35edd0dfb7839
2014-07-17 11:54:01 +01:00
Caolán McNamara
080bf84bff clang: WaE: -Wunused-parameter
Change-Id: Ibd62d74d1244a29d7554837c3b39e76b87098b97
2014-06-26 16:29:12 +01:00