Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/makedevs

Buildroot tpetazzoni at uclibc.org 1 participant 1 message Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

Author: tpetazzoni
Date: 2008-12-02 14:26:00 -0800 (Tue, 02 Dec 2008) New Revision: 24236

Log:
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.

Modified:
trunk/buildroot/target/makedevs/makedevs.c

Changeset:
Modified: trunk/buildroot/target/makedevs/makedevs.c
===================================================================

buildroot/target/makedevs/makedevs.c +2 -1
@@ -528,7 +528,8 @@
 	}
 	fclose(table);
 
-	system("/bin/sync");
+	if (system("/bin/sync"))
+		bb_error_msg("sync failed, continuing anyway");
 
 	return 0;
 }