[Libreoffice] Compilation failed in vcl module (warning treated as errors)
vmiklos at frugalware.org
Tue May 10 18:36:47 PDT 2011
On Tue, May 10, 2011 at 11:20:05PM +0200, Julien Nabet <serval2412 at yahoo.fr> wrote:
> Compiling: vcl/source/gdi/gdimtf.cxx
> error: prototype for 'MetaAction*
> GDIMetaFile::ReplaceAction(MetaAction*, size_t)' does not match any in
> class 'GDIMetaFile'
> ../../inc/vcl/gdimtf.hxx:218:21: error: candidate is: MetaAction*
> GDIMetaFile::ReplaceAction(MetaAction*, sal_uLong)
> Since I didn't fully understand how and when to use "sal_uLong" and
> "size_t" + their implementation with 32/64 bits, I don't know how to
> fix this.
Looks like Joseph started to replace sal_uLong by size_t, but he did not
lave the prototypes / implementations in sync, see commit 6fb23043.
I wonder how did this even build for him. ;)
Norbert already fixed a few, issues, I've fixed
GDIMetaFile::ReplaceAction() header, GDIMetaFile::Play() implementation
and GDIMetaFile::GetActionPos() implmenentation, now it at least builds
> By the way, couldn't it be useful to use --enable-werror by default ?
Of course I have no problem with enabling werror by default when
building from git, but doing it in release tarballs sounds odd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the LibreOffice