public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo commit in src/patchsets/coreutils/8.24: 003_all_coreutils-gentoo-uname.patch
Date: Wed,  5 Aug 2015 07:32:19 +0000 (UTC)	[thread overview]
Message-ID: <20150805073219.4D74B11F@oystercatcher.gentoo.org> (raw)

vapier      15/08/05 07:32:19

  Modified:             003_all_coreutils-gentoo-uname.patch
  Log:
  fix build failures when using -Werror

Revision  Changes    Path
1.5                  src/patchsets/coreutils/8.24/003_all_coreutils-gentoo-uname.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/8.24/003_all_coreutils-gentoo-uname.patch?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/8.24/003_all_coreutils-gentoo-uname.patch?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/coreutils/8.24/003_all_coreutils-gentoo-uname.patch?r1=1.4&r2=1.5

Index: 003_all_coreutils-gentoo-uname.patch
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/coreutils/8.24/003_all_coreutils-gentoo-uname.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- 003_all_coreutils-gentoo-uname.patch	5 Aug 2015 07:31:10 -0000	1.4
+++ 003_all_coreutils-gentoo-uname.patch	5 Aug 2015 07:32:19 -0000	1.5
@@ -11,7 +11,7 @@
 
 --- coreutils/src/uname.c
 +++ coreutils/src/uname.c
-@@ -50,6 +50,11 @@
+@@ -50,6 +50,12 @@
  # include <mach-o/arch.h>
  #endif
  
@@ -20,10 +20,11 @@
 +# define UNAME_HARDWARE_PLATFORM
 +#endif
 +
++#include "ignore-value.h"
  #include "system.h"
  #include "error.h"
  #include "quote.h"
-@@ -138,6 +143,119 @@
+@@ -138,6 +144,119 @@
    exit (status);
  }
  
@@ -123,8 +124,8 @@
 +				 * length limit caused us to read right up to the
 +				 * newline ... doing "%*[^\n]\n" wont eat the newline
 +				 */
-+				fscanf (fp, "%*[^\n]");
-+				fscanf (fp, "\n");
++				ignore_value (fscanf (fp, "%*[^\n]"));
++				ignore_value (fscanf (fp, "\n"));
 +			}
 +		}
 +		fclose (fp);
@@ -143,7 +144,7 @@
  /* Print ELEMENT, preceded by a space if something has already been
     printed.  */
  
-@@ -250,10 +368,14 @@ main (int argc, char **argv)
+@@ -250,10 +369,14 @@ main (int argc, char **argv)
    if (toprint & PRINT_PROCESSOR)
      {
        char const *element = unknown;
@@ -159,7 +160,7 @@
            element = processor;
        }
  #endif
-@@ -306,9 +428,13 @@ main (int argc, char **argv)
+@@ -306,9 +429,13 @@ main (int argc, char **argv)
        if (element == unknown)
          {
            static char hardware_platform[257];





             reply	other threads:[~2015-08-05  7:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05  7:32 Mike Frysinger (vapier) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-05  7:45 [gentoo-commits] gentoo commit in src/patchsets/coreutils/8.24: 003_all_coreutils-gentoo-uname.patch Mike Frysinger (vapier)
2015-08-05  7:35 Mike Frysinger (vapier)
2015-08-05  7:31 Mike Frysinger (vapier)
2015-08-05  6:56 Mike Frysinger (vapier)

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=20150805073219.4D74B11F@oystercatcher.gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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