summaryrefslogtreecommitdiffstats
path: root/target/makedevs
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2008-12-02 22:26:00 +0000
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2008-12-02 22:26:00 +0000
commitbe5be0ec5abb6cf88d24d9b17329a206938006ec (patch)
treefe2d871a1f3e34281f4f1dff1e1053fc5c1dca54 /target/makedevs
parenta3c53dc20d216c8638bd64a6f50b3f5579e2f47f (diff)
downloadbuildroot-novena-be5be0ec5abb6cf88d24d9b17329a206938006ec.tar.gz
buildroot-novena-be5be0ec5abb6cf88d24d9b17329a206938006ec.zip
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/makedevs')
-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 8fa3048c4..5ca45e9ae 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;
}