Bug 476457 - compiler complains about no return statement in code from linux-2.6-silence-fbcon-logo.patch
Summary: compiler complains about no return statement in code from linux-2.6-silence-f...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-14 23:51 UTC by Michael Young
Modified: 2009-02-26 22:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-26 22:17:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Young 2008-12-14 23:51:57 UTC
When trying to build an altered rawhide kernel in F10 I get the error
cc1: warnings being treated as errors
drivers/video/console/fbcon.c: In function 'quiet_logo':
drivers/video/console/fbcon.c:3603: error: no return statement in function returning non-void
make[3]: *** [drivers/video/console/fbcon.o] Error 1
The problem code is from linux-2.6-silence-fbcon-logo.patch, and the lines +static int __init quiet_logo(char *str)
+{
+       logo_shown = FBCON_LOGO_DONTSHOW;
+}
+
+early_param("quiet", quiet_logo);
+
and the compiler is clearly worried that this is a int function but you aren't returning anything.

Comment 1 Kyle McMartin 2009-02-26 22:17:32 UTC
fixt. thanks. :)


Note You need to log in before you can comment on or make changes to this bug.