[Bug 214468] devel/glib20 return error in gmesssage.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 13 10:16:27 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214468

            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 at FreeBSD.org
          Reporter: w.schwarzenfeld at utanet.at
             Flags: maintainer-feedback?(gnome at FreeBSD.org)
          Assignee: gnome at FreeBSD.org

I tried to reinstall lxterminal.

It failed with:
setting.c:165:5: error: non-void function 'copy_setting' should return a value
[-Wreturn-type]
    g_return_if_fail (setting != NULL);
    ^
/usr/local/include/glib-2.0/glib/gmessages.h:373:3: note: expanded from macro
'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);                              \
=>         return;                                                        \
       };         

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.

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


More information about the freebsd-ports-bugs mailing list