Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 02:27:01 GMT
From:      David Shao <davshao@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179035: x11/lxpanel on FreeBSD 10.0-CURRENT non-void function should return a value 
Message-ID:  <201305280227.r4S2R1pT050572@oldred.FreeBSD.org>
Resent-Message-ID: <201305280230.r4S2U0E5010571@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179035
>Category:       ports
>Synopsis:       x11/lxpanel on FreeBSD 10.0-CURRENT non-void function should return a value
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 28 02:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     David Shao
>Release:        FreeBSD 10.0-CURRENT #13 r251046 amd64
>Organization:
>Environment:
FreeBSD 10.0-CURRENT #13 r251046 amd64
>Description:
For ports svn r319288, build of x11/lxpanel fails with:

gmake[4]: Entering directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/src/plugins/volume'
  CC       volume_la-volume-impl.lo
volume-impl.c:182:11: warning: incompatible pointer types assigning to 'GtkSpinButton *' (aka 'struct _GtkSpinButton *') from 'GtkWidget *'
      (aka 'struct _GtkWidget *') [-Wincompatible-pointer-types]
        vol_spin = spinbutton1;
                 ^ ~~~~~~~~~~~
1 warning generated.
  CC       volume_la-volume.lo
volume.c:193:20: error: non-void function 'on_button_press' should return a value [-Wreturn-type]
                        if (! vol_spin) return;
                                        ^
volume.c:196:26: error: non-void function 'on_button_press' should return a value [-Wreturn-type]
                        if (! vol_adjustment) return;
                                              ^
volume.c:217:19: error: non-void function 'on_button_press' should return a value [-Wreturn-type]
                if (! vol_spin) return;
                                ^
volume.c:220:25: error: non-void function 'on_button_press' should return a value [-Wreturn-type]
                if (! vol_adjustment) return;
                                      ^
volume.c:286:21: error: non-void function 'volume_constructor' should return a value [-Wreturn-type]
    if (! vol_spin) return;
                    ^
volume.c:289:27: error: non-void function 'volume_constructor' should return a value [-Wreturn-type]
    if (! vol_adjustment) return;

x11/lxpanel builds on FreeBSD 9.1-RELEASE-p3 amd64.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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