Bug 4375

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

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 ***