[Libreoffice] ucb/source/ucb compilation error

Miklos Vajna vmiklos at frugalware.org
Thu Nov 25 02:57:57 PST 2010

On Thu, Nov 25, 2010 at 03:33:08AM -0700, Tor Lillqvist <tlillqvist at novell.com> wrote:
> Sure, although I think I would prefer to keep OSL_THIS_FUNC as ""
> instead of "(unknown)" in the fallback case.

OK, I just changed that and pushed it.

> So, you think the i#114290 argument that neither __PRETTY_FUNCTION__
> nor __func__ can be used because neither is a string literal and thus
> can't be compile-time concatenated with other string literals is
> bogus?

Yes, to my understanding.

> As such, it is true of course that they can't be used like that. But
> is the proper solution then just to not try to use OSL_THIS_FUNC in
> that way? Instead just pass it as a separate argument to printf (yeah,
> my C background shows through) or whatever?

I think, so. At least my use-case is like this:

OSL_TRACE("%s: unhandled segment '%x' in the path", OSL_THIS_FUNC, nSeg);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101125/88038628/attachment.pgp>

More information about the LibreOffice mailing list