aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2008-12-02 22:26:00 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2008-12-02 22:26:00 +0000
commitbe5be0ec5abb6cf88d24d9b17329a206938006ec (patch)
treefe2d871a1f3e34281f4f1dff1e1053fc5c1dca54 /target
parenta3c53dc20d216c8638bd64a6f50b3f5579e2f47f (diff)
downloadbuildroot-be5be0ec5abb6cf88d24d9b17329a206938006ec.tar.gz
buildroot-be5be0ec5abb6cf88d24d9b17329a206938006ec.tar.bz2
Compiling current SVN fails with the following error for me:
cc1: warnings being treated as errors buildroot/buildroot/build_powerpc/makedevs/makedevs.c: In function main: buildroot/buildroot/build_powerpc/makedevs/makedevs.c:531: error: ignoring return value of system, declared with attribute warn_unused_result This change adds a simple warning if system() fails. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'target')
-rw-r--r--target/makedevs/makedevs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/makedevs/makedevs.c b/target/makedevs/makedevs.c
index 8fa3048c47..5ca45e9aeb 100644
--- a/target/makedevs/makedevs.c
+++ b/target/makedevs/makedevs.c
@@ -528,7 +528,8 @@ loop:
}
fclose(table);
- system("/bin/sync");
+ if (system("/bin/sync"))
+ bb_error_msg("sync failed, continuing anyway");
return 0;
}