Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 532284

Summary: sys-apps/gentoo-functions-0.8 has a warning if compiled with -Wunused-parameter
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED FIXED    
Severity: trivial CC: base-system, blueness
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2014-12-11 16:55:43 UTC
Just a cosmetic bug:

consoletype.c: In function 'main':
consoletype.c:17:14: warning: unused parameter 'argc' [-Wunused-parameter]
 int main(int argc, char *argv[])
              ^
consoletype.c:17:26: warning: unused parameter 'argv' [-Wunused-parameter]
 int main(int argc, char *argv[])
                          ^



-int main(int argc, char *argv[])
+int main()

fixes the warning for me and the execution of the programs returns pty.
Comment 1 William Hubbs gentoo-dev 2015-02-01 20:52:23 UTC
This was actually fixed sometime back with commit 4832781 and will be
part of gentoo-functions-0.9.