From be5be0ec5abb6cf88d24d9b17329a206938006ec Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 2 Dec 2008 22:26:00 +0000 Subject: 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 Signed-off-by: Thomas Petazzoni --- target/makedevs/makedevs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3