Bug 4375 - prevent unused-but-set warning on "ret" in makedevs.c
Summary: prevent unused-but-set warning on "ret" in makedevs.c
Status: RESOLVED DUPLICATE of bug 4171
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 04:04 UTC by Danomi Mocelopolis
Modified: 2011-10-23 17:50 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
patch file (432 bytes, patch)
2011-10-22 04:04 UTC, Danomi Mocelopolis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danomi Mocelopolis 2011-10-22 04:04:07 UTC
Created attachment 3673 [details]
patch file

The makedevs program assigns "ret", but never reads from it.  (It always returns 0.)  While using gcc 4.6.0 for an OMAP target, I got an unused-but-set warning on "ret", which coupled with a -Werror that was set somewhere, bringing the buildroot compile to a halt.  So I have attached a patch that tests "ret", and prints out a warning if there were any failures.
Comment 1 Danomi Mocelopolis 2011-10-23 17:50:41 UTC

*** This bug has been marked as a duplicate of bug 4171 ***