Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: tpetazzoni at uclibc.org <tpetazzoni@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/target/makedevs
Date: Tue,  2 Dec 2008 14:26:00 -0800 (PST)	[thread overview]
Message-ID: <20081202222600.D852D3C7D5@busybox.net> (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.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>



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


Changeset:
Modified: trunk/buildroot/target/makedevs/makedevs.c
===================================================================
--- trunk/buildroot/target/makedevs/makedevs.c	2008-12-02 21:52:24 UTC (rev 24235)
+++ trunk/buildroot/target/makedevs/makedevs.c	2008-12-02 22:26:00 UTC (rev 24236)
@@ -528,7 +528,8 @@
 	}
 	fclose(table);
 
-	system("/bin/sync");
+	if (system("/bin/sync"))
+		bb_error_msg("sync failed, continuing anyway");
 
 	return 0;
 }

             reply	other threads:[~2008-12-02 22:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-02 22:26 tpetazzoni at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-20 17:21 [Buildroot] svn commit: trunk/buildroot/target/makedevs aldot at uclibc.org
2007-01-21 14:36 aldot at uclibc.org
2006-10-06 12:59 aldot at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081202222600.D852D3C7D5@busybox.net \
    --to=tpetazzoni@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox