Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532284 - sys-apps/gentoo-functions-0.8 has a warning if compiled with -Wunused-parameter
Summary: sys-apps/gentoo-functions-0.8 has a warning if compiled with -Wunused-parameter
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-11 16:55 UTC by Agostino Sarubbo
Modified: 2015-02-01 20:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.