[Buildroot] [Bug 4171] New: makedevs-unused-but-set-variable.patch

bugzilla at busybox.net bugzilla at busybox.net
Fri Sep 9 23:17:00 UTC 2011


           Summary: makedevs-unused-but-set-variable.patch
           Product: buildroot
           Version: 2010.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: hector.oron at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


  makedevs package in buildroot fails to build when `-Wunused-but-set-variable'
is set in the compiler. The following patch attempts to fix this issue:

Index: buildroot-2010.11/package/makedevs/makedevs.c
--- buildroot-2010.11.orig/package/makedevs/makedevs.c  2011-09-09
22:33:32.948124813 +0100
+++ buildroot-2010.11/package/makedevs/makedevs.c       2011-09-09
22:33:55.044124824 +0100
@@ -531,5 +531,5 @@
        if (system("/bin/sync"))
                bb_error_msg("sync failed, continuing anyway");

-       return 0;
+       return ret;

Best regards,
  -- Hector Oron

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the buildroot mailing list