| Summary: | prevent unused-but-set warning on "ret" in makedevs.c | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Danomi Mocelopolis <d_mo1234> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | patch file | ||
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.