Mailinglist Archive: opensuse-bugs (8956 mails)

< Previous Next >
[Bug 214105] New: supertux-0.1.3-28: mising return statement
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 20 Oct 2006 12:43:05 -0600 (MDT)
  • Message-id: <bug-214105-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=214105

Summary: supertux-0.1.3-28: mising return statement
Product: openSUSE 10.2
Version: Alpha 5 plus
Platform: All
OS/Version: SuSE Linux 10.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to compile package supertux-0.1.3-28 with the
Intel C compiler.

The compiler said

texture.cpp(107): warning #1011: missing return statement at
end of non-void function "SurfaceData::create_SurfaceOpenGL"

The source code is

#endif
assert(0);
}

I have looked at the code and there is no code for the default
case in the switch statement and there is no return statement
at the end of the function.

Suggest add

return 0;

to end of the function.


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >