From: Thomas Petazzoni Date: Tue, 2 Dec 2008 22:26:00 +0000 (-0000) Subject: Compiling current SVN fails with the following error for me: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be5be0ec5abb6cf88d24d9b17329a206938006ec;p=buildroot.git 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 --- 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; }