Mailinglist Archive: opensuse-bugs (4172 mails)

< Previous Next >
[Bug 513039] New: gok-2.27.2-1.2: 'return' with no value, in function returning non-void
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 14 Jun 2009 16:08:39 -0600
  • Message-id: <bug-513039-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=513039


Summary: gok-2.27.2-1.2: 'return' with no value, in function
returning non-void
Classification: openSUSE
Product: openSUSE 11.2
Version: Factory
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


I just tried to build Factory package gok-2.27.2-1.2
and the build said

switchapi.c:246:3: warning: 'return' with no value, in function returning
non-void

The source code is

static gboolean
joystick_event (GIOChannel *channel, GIOCondition condition, gpointer data)
{
struct js_event js;
int readrc;
JoySwitchData * joydata;

joydata = data;
if (joydata == 0)
{
gok_log_x ("Warning: Improper callback registration, %u, in
joystick_event\n", __LINE__);
return;

Clearly broken code. Suggest code rework.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups