384617 Commits

Author SHA1 Message Date
Stephan Bergmann
80c0767b98 Work around clang-cl PR25641
"defaultbootstrap.o : error LNK2001: unresolved external symbol
'[thunk]:private: virtual class com::sun::uno::Sequence<class
rtl::OUString> __cdecl cppuhelper::ServiceManager::getAvailableServiceNames`adjustor{24}'
(void)'
(?getAvailableServiceNames@ServiceManager@cppuhelper@@GBI@EAA?AV?$Sequence@VOUString@rtl@@@uno@star@sun@com@@XZ)"

Change-Id: I04b7353305ffeeb316d70ab8408aeb52ea0f7186
2015-11-28 08:44:53 +01:00
Stephan Bergmann
985d259e7d Silence clang-cl warnings in gperf-generated code
Change-Id: Id30e7afb3024d94cacf392bcd72c952d5a2ba5c4
2015-11-28 08:44:52 +01:00
Stephan Bergmann
bc2fe2249b Adapt to true wchar_t in clang-cl
Change-Id: Id127668e6786665b819b7c0b1c0cd424ebff96bf
2015-11-28 08:44:52 +01:00
Stephan Bergmann
0475ab7208 Adapt to true wchar_t in clang-cl
Change-Id: I14c2dc0be12151b5d4ea2ba3b65030f6f4494905
2015-11-28 08:44:52 +01:00
Stephan Bergmann
9c49ece604 -Werror,-Wdelete-non-virtual-dtor
"thumbviewer.cxx(168,9) :  error: delete called on 'StreamOnZipBuffer' that has
virtual functions but non-virtual destructor"

Change-Id: I34510d54b9a99d8f1f9e8da0236625023c3fd94c
2015-11-28 08:44:51 +01:00
Stephan Bergmann
b98febded4 -Werror,-Wduplicate-decl-specifier (extern "C" already in STDAPI)
Change-Id: I2f170c8ad2ef30f49062fdeee4bcdcf5baf552db
2015-11-28 08:44:51 +01:00
Stephan Bergmann
feea3810b7 -Werror,-Wunused-function
...since ce59f8851472776f2ea364f7597ac887e77081c5 "INTEGRATION: CWS
desktintgr03: #i34294#" commented out the uses (whicht got later removed
completely with 45f0cc2ec176f02592a4e67942b1220f7837ab9f "Remove commented code
in libs-core/shell")

Change-Id: Icb7f97b72634d07045f5880af33b372be36e66b2
2015-11-28 08:44:51 +01:00
Stephan Bergmann
fa906e531b -Werror,-Wunused-function
Change-Id: Icb5476f117ec44f5a4dc3026595305293b99fdd8
2015-11-28 08:44:50 +01:00
Stephan Bergmann
2fe2ca2677 -Wmicrosoft-cast
Change-Id: I205861dd46d635b4b7be87ec8eb84cb70d8bf4d7
2015-11-28 08:44:50 +01:00
Stephan Bergmann
353b7dde33 -Werror,-Wstring-plus-int
Change-Id: Ie16ca73ac3d622d00583ef454780f9a01b32d436
2015-11-28 08:44:50 +01:00
Stephan Bergmann
687d97b96a Make Clang version detection work for clang-cl
...which does not behave as expected with the given command line arguments, so
just strip "-cl.exe" (and any hard-coded command line arguments following it in
$CC, but that's probably rather harmless here).  Expects that clang-cl is given
with an ".exe" extension in $CC (not assuming that and stripping "-cl" and
everything that might follow could be a bit too agressive).

Change-Id: If99f964dda1369b7d4bbb63b3d634b93c9f935a8
2015-11-28 08:44:50 +01:00
Stephan Bergmann
d8a4233990 -Werror,-Wformat
Change-Id: I60589ff9a5b47bcc3c749238a9cd3d8e910b7ba5
2015-11-28 08:44:49 +01:00
Stephan Bergmann
1cb4fa3391 -Werror,-Wmicrosoft-enum-value
Change-Id: I50aaeb264c901146c119192cbd961b20117788e1
2015-11-28 08:44:49 +01:00
Stephan Bergmann
813080fde9 Missing include
Change-Id: I62fd53d6f39349405865783bc44edbb7929664a1
2015-11-28 08:44:49 +01:00
Stephan Bergmann
aef3bc8b58 Missing include
Change-Id: If88aae978bc7cabe212f645f8eedff14d36c062f
2015-11-28 08:44:49 +01:00
Stephan Bergmann
017aa343a4 Missing include
Change-Id: I1516acb038f08479cdd4ffd42d5af1e7ec555d10
2015-11-28 08:44:48 +01:00
Stephan Bergmann
6760dc5f16 -Werror,-Wunused-const-variable
Change-Id: I4331396f5bbc37306c09f0e9a1c6b2969922f66f
2015-11-28 08:44:48 +01:00
Stephan Bergmann
a649689fac -Werror,-Wreorder
Change-Id: I0988cf701dea563e3990b4179879fbcd3778662d
2015-11-28 08:44:48 +01:00
Stephan Bergmann
adf2c52352 -Werror,-Wunused-const-variable
Change-Id: Ie539b4f3e4295a8dcb1126371e5f2c75e9d723ab
2015-11-28 08:44:47 +01:00
Stephan Bergmann
dd706ea26d -Werror,-Wunused-const-variable
Change-Id: Ib725e544d058c735e485db1586743746a5236488
2015-11-28 08:44:47 +01:00
Stephan Bergmann
3493c74970 Avoid ambiguity which OUStringBuffer ctor to select
...for size_t (i.e., unsigned long long on Windows 64-bit), chosing among the
int, unsigned int, long, unsigned long overloads.  MSVC apparently happily picks
one of them, but clang-cl rightly complains.

Change-Id: Ib245925bdf9e4a34add6ca435a95559f4f07c4d7
2015-11-28 08:44:47 +01:00
Stephan Bergmann
1ef0dd7aef -Werror,-Wunused-function
Change-Id: Id53c00a90f4f2d87e469ae4fe4121a5678dff5a4
2015-11-28 08:44:47 +01:00
Stephan Bergmann
61057a61ab -Werror,-Wmicrosoft-exception-spec
Change-Id: I0a4256047ae0142a03903101036d2a3c8d17429b
2015-11-28 08:44:46 +01:00
Stephan Bergmann
018b561aa4 -Werror,-Wunused-function
Change-Id: I6103a8539c4d788fff1a7e3c3530a6ec7cd1f0c6
2015-11-28 08:44:46 +01:00
Stephan Bergmann
e5d211eb8e Remove unused ESCHER_ShadeType
...apparently a copy of MSO_ShadeType removed with
e336d7f80fd9f7ada4b12c37f9434df411d28466 "Remove unused MSO_ShadeType" and
equally unused

Change-Id: If1660faa45c1445c302ac0c9a1a160674691c15d
2015-11-28 08:44:46 +01:00
Stephan Bergmann
7ecdffbef7 Don't leave sdr::table::Cell members implicitly declared
...otherwise, as the class is SVX_DLLPUBLIC and---for better or worse---
SVX_DLLPUBLIC is shared between Library_svxcore and Library_svxcore, all .cxx in
Library_svx that happen to include cell.hxx would emit them (as well as those in
Library_svxcore, of course), and the copy ctor requires the vtable, which in
turn requires an adjustor thunk for Cell::getPropertyStates, which happens to
not be emitted into any of the Library_svx .cxx that require it under clang-cl
due to <https://llvm.org/bugs/show_bug.cgi?id=25641> "clang-cl: vtordisp thunks
not emitted for functions with class template specializations in their
signatures."

Change-Id: Ib03b7002f9dfe3c2df742640ef7406cf24a7cecd
2015-11-28 08:44:46 +01:00
Stephan Bergmann
2283dd0b0a Non-implicit virtual SvxPageItem dtor
...otherwise, as the class is SVX_DLLPUBLIC and---for better or worse---
SVX_DLLPUBLIC is shared between Library_svxcore and Library_svx, all .cxx in
Library_svxcore that happen to include svx/pageitem.hxx would emit it (as well
as those in Library_svx, of course).  But at least clang-cl at /O0 would want
to put SvxPageItem's (base-class) vtable in place in the dtor, so would also
emit the vtable, so would depend on SvxPageItem::operator==, but that is defined
in pageitem.cxx in Library_svx, against which Library_svxcore doesn't link.

Change-Id: Ibfc393c1de3e0bd6621c057d88b1b0f272820154
2015-11-28 08:44:45 +01:00
Stephan Bergmann
a6608ad582 -Werror,-Wunused-private-field
Change-Id: I539326ee46615adfd648acb15cbd3eacfd914989
2015-11-28 08:44:45 +01:00
Stephan Bergmann
13df75cc5a -Werror,-Winconsistent-missing-override
Change-Id: Ie8cfbb51b706e3b2c1d0b33aef5156438e9c7134
2015-11-28 08:44:45 +01:00
Stephan Bergmann
0f513b1f80 -Werror,-Woverloaded-virtual
Change-Id: I40a88271b32d81f5857dd41b237e2c486c7059a0
2015-11-28 08:44:44 +01:00
Stephan Bergmann
2630d44085 error: ambiguous conversion
...for C-style cast from 'connectivity::ado::OLEString' to 'rtl::OUString', as
connectivity::ado::OLEString has conversion operators to both OUString and BSTR
(i.e., wchar_t*), so both the OUString copy ctor and
OUString(sal_Unicode const*) ctor match.  At least MSVC 2013 happily compiles
that without complaining, but clang-cl does.

Change-Id: Ica634cf19c0fcf1dbff377cb503f6ea6c8257898
2015-11-28 08:44:44 +01:00
Stephan Bergmann
f470927e85 -Werror,-Winconsistent-missing-override
Change-Id: I607bd38a8cbed1f6b140a1adeb198cf3334a9c5e
2015-11-28 08:44:44 +01:00
Stephan Bergmann
8fa059fe65 C++17 nested namespace definition
Change-Id: I49fd2093d619743d0d5aaaa4784bd5ef5bb330c6
2015-11-28 08:44:43 +01:00
Stephan Bergmann
e54e5ee959 Unused forward decl
Change-Id: Id332cdff634be042e026faf7cc75d8eaeb44a13e
2015-11-28 08:44:42 +01:00
Stephan Bergmann
675fbe9e2d -Werror,-Wunused-function
Change-Id: Ic238339b521dbff2d7fbe899127ac7954036300f
2015-11-28 08:44:42 +01:00
Stephan Bergmann
85453425a8 -Werror,-Wunused-private-field
Change-Id: Ie14d3b3474b7886add80bd6e223e76fbf964144e
2015-11-28 08:44:42 +01:00
Stephan Bergmann
6694e10a23 -Werror,-Wreorder
Change-Id: I27eb5c497985267dd00b5be2fb3c17f8d79745cf
2015-11-28 08:44:41 +01:00
Stephan Bergmann
6adbf1322b -Werror,-Wreorder
Change-Id: I0a3384505d8ab7fe70c0dccb93a96d9d3e991367
2015-11-28 08:44:41 +01:00
Stephan Bergmann
df077447ee -Werror,-Wunused-function
Change-Id: I99246a9de5f266154f9927bff322a0a1697bcdee
2015-11-28 08:44:41 +01:00
Stephan Bergmann
1145de8660 -Werror,-Winconsistent-missing-override
Change-Id: I41d1e0d5e6263255426efb011c7b4bb5ae6775b5
2015-11-28 08:44:41 +01:00
Stephan Bergmann
0eb27ddf81 -Werror,-Wunused-function
Change-Id: Id149af78312b205fbf14f0c2438dd4ad741f49ab
2015-11-28 08:44:40 +01:00
Stephan Bergmann
6fc1efd5e8 Missing includes
Change-Id: Ieb3066bbd9a34e28e61eebc475f48374bd50a33f
2015-11-28 08:44:40 +01:00
Stephan Bergmann
cff54fb87a Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I3041d93f98e491e4600da78a0d1f6100be1177a7
2015-11-28 08:44:40 +01:00
Stephan Bergmann
6228c49158 -Werror,-Wreorder
Change-Id: I202fee919179c89101a7f2b8a802e14254d768e2
2015-11-28 08:44:40 +01:00
Stephan Bergmann
0e8c79ab99 Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f
2015-11-28 08:44:39 +01:00
Stephan Bergmann
6cd09d31f4 -Werror,-Wint-to-pointer-cast
Change-Id: Iec98a5a3df5dcfcd3fcf658bf27e9b5fe57ffc44
2015-11-28 08:44:39 +01:00
Stephan Bergmann
caa080ea80 Adapt to true wchar_t in clang-cl
Change-Id: I215b8215108a268f969106db6f01f876bd0dc0a0
2015-11-28 08:44:39 +01:00
Stephan Bergmann
c091a9f06d Don't wrap glyphy source files in namespace GLyphyDemo
...as the source files themselves include standard headers, which must not be
included from within a namespace (which confuses clang-cl).  According to Tor,
the original intent was to try not to pollute the global namespace, but that
seems to cause no problems in practice (esp. as nothing from these files gets
exported).

Change-Id: I204c1db932996a09d16e84dd5c6033caa5362caa
2015-11-28 08:44:38 +01:00
Stephan Bergmann
9a2764bda6 Adapt to true wchar_t in clang-cl
Change-Id: I1ad03056497f39ca294a8abaffd7e069227a704e
2015-11-28 08:44:38 +01:00
Stephan Bergmann
27b743bd14 -Werror,-Wwritable-strings
Change-Id: I85ae9765ed090816c48efd138d9a1a428999dd20
2015-11-28 08:44:38 +01:00