Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2016 10:16:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214468] devel/glib20 return error in gmesssage.h
Message-ID:  <bug-214468-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214468

            Bug ID: 214468
           Summary: devel/glib20 return error in gmesssage.h
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: w.schwarzenfeld@utanet.at
             Flags: maintainer-feedback?(gnome@FreeBSD.org)
          Assignee: gnome@FreeBSD.org

I tried to reinstall lxterminal.

It failed with:
setting.c:165:5: error: non-void function 'copy_setting' should return a va=
lue
[-Wreturn-type]
    g_return_if_fail (setting !=3D NULL);
    ^
/usr/local/include/glib-2.0/glib/gmessages.h:373:3: note: expanded from mac=
ro
'g_return_if_fail'
         return;                                                        \
         ^
1 error generated.

the error is in /usr/local/include/glib-2.0/glib/gmessages.h:
line 374
#define g_return_if_fail(expr)          G_STMT_START{                   \
     if G_LIKELY(expr) { } else                                         \
       {                                                                \
         g_return_if_fail_warning (G_LOG_DOMAIN,                        \
                                   G_STRFUNC,                           \
                                   #expr);                              \
=3D>         return;                                                       =
 \
       };=20=20=20=20=20=20=20=20=20

and the same in lin 392.

If I set return 1 I got a lot more errors.

So I deleted it. But this is surely wrong. g_return_if_fails must return
something.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214468-13>