ports/156802: x11-wm/windowmaker: clang: dock.c:3804:9: error: non-void function 'handleIconMove' should return a value [-Wreturn-type]
Hartmann at FreeBSD.org
Hartmann at FreeBSD.org
Tue May 3 22:00:21 UTC 2011
>Number: 156802
>Category: ports
>Synopsis: x11-wm/windowmaker: clang: dock.c:3804:9: error: non-void function 'handleIconMove' should return a value [-Wreturn-type]
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 03 22:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Hartmann, O.
>Release: FreeBSD 9.0-CURRENT/amd64 rr221413
>Organization:
FU Berlin
>Environment:
>Description:
Making all in src
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c actions.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c appicon.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c application.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c appmenu.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c balloon.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c client.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c colormap.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c cycling.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c defaults.c
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c dialog.c
defaults.c:2590:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (mask < 0) {
~~~~ ^ ~
clang -DHAVE_CONFIG_H -I. -I. -I. -I../wrlib -I../WINGs -I/usr/local/include -I/usr/local/include -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -fno-strict-aliasing -O2 -pipe -march=native -fno-strict-aliasing -c dock.c
dock.c:1626:5: warning: implicit declaration of function 'addDockShortcut' is invalid in C99 [-Wimplicit-function-declaration]
if(addDockShortcut(WMGetFromPLString(cmd), aicon))
^
dock.c:1971:9: warning: implicit declaration of function 'rebindKeygrabs' is invalid in C99 [-Wimplicit-function-declaration]
rebindKeygrabs(dock->screen_ptr);
^
dock.c:3804:9: error: non-void function 'handleIconMove' should return a value [-Wreturn-type]
return;
^
dock.c:4520:9: warning: implicit declaration of function 'wXModifierFromKey' is invalid in C99 [-Wimplicit-function-declaration]
mod = wXModifierFromKey(b);
^
dock.c:4582:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if(done = wDockPerformShortcut(scr->workspaces[i]->clip, event)) break;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dock.c:4582:12: note: place parentheses around the assignment to silence this warning
if(done = wDockPerformShortcut(scr->workspaces[i]->clip, event)) break;
^
( )
dock.c:4582:12: note: use '==' to turn this assignment into an equality comparison
if(done = wDockPerformShortcut(scr->workspaces[i]->clip, event)) break;
^
==
4 warnings and 1 error generated.
1 warning generated.
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
Stop in /usr/ports/x11-wm/windowmaker.
*** Error code 1
Stop in /usr/ports/x11-wm/windowmaker.
===>>> make failed for x11-wm/windowmaker
===>>> Aborting update
Terminated
>How-To-Repeat:
Try to compile x11-wm/windowmaker from most recent ports repository with recent FreeBSD 9.0-CURRENT's "llvm/clang"
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list