This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-254-g439e1ad


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  439e1ad6d04e24f76f92ff7f61153fbe489559b9 (commit)
      from  b1eda10e17bf2056ca79a534d92fe0b0b06bd410 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=439e1ad6d04e24f76f92ff7f61153fbe489559b9

commit 439e1ad6d04e24f76f92ff7f61153fbe489559b9
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Nov 25 23:31:21 2014 +0000

    Fix warning in stdio-common/tst-printf-round.c.
    
    This patch fixes warnings of the form "tst-printf-round.c:202:17:
    warning: passing argument 3 of 'test_hex_in_one_mode' discards 'const'
    qualifier from pointer target type", by adding an extra const to that
    argument (so that after array-to-pointer conversion it's const char
    *const *).
    
    Tested for x86_64.
    
    	* stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
    	third argument const.

diff --git a/ChangeLog b/ChangeLog
index c020ed4..23fba36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-25  Joseph Myers  <joseph@codesourcery.com>
+
+	* stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
+	third argument const.
+
 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
 
 	fnmatch: work around GCC compiler warning bug with uninit var
diff --git a/stdio-common/tst-printf-round.c b/stdio-common/tst-printf-round.c
index b76360f..5035dda 100644
--- a/stdio-common/tst-printf-round.c
+++ b/stdio-common/tst-printf-round.c
@@ -136,7 +136,7 @@ static const struct hex_test hex_tests[] =
   };
 
 static int
-test_hex_in_one_mode (double d, const char *fmt, const char *expected[4],
+test_hex_in_one_mode (double d, const char *fmt, const char *const expected[4],
 		      const char *mode_name)
 {
   char buf[100];

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                       |    5 +++++
 stdio-common/tst-printf-round.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]