From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1069 invoked by alias); 22 Jan 2004 10:40:17 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 972 invoked from network); 22 Jan 2004 10:40:16 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 22 Jan 2004 10:40:16 -0000 Received: from Hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 989ED7495B for ; Thu, 22 Jan 2004 11:36:42 +0100 (CET) Received: by reger.suse.de (Postfix, from userid 659) id 54F4DD0863; Thu, 22 Jan 2004 11:36:42 +0100 (CET) To: GNU libc hackers Subject: Warning removal From: Andreas Jaeger Date: Thu, 22 Jan 2004 10:40:00 -0000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2004-01/txt/msg00085.txt.bz2 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-length: 309 This patch gets rid of GCC 3.4's warning: ../sysdeps/ieee754/dbl-64/e_pow.c:49: warning: conflicting types for built-in function 'log2' Ok to commit? Andreas 2004-01-22 Andreas Jaeger * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to log2x to avoid warnings for builtin function log2. --=-=-= Content-Disposition: inline; filename=libc-diff Content-length: 1780 ============================================================ Index: sysdeps/ieee754/dbl-64/e_pow.c --- sysdeps/ieee754/dbl-64/e_pow.c 26 Aug 2002 22:40:36 -0000 1.12 +++ sysdeps/ieee754/dbl-64/e_pow.c 22 Jan 2004 10:36:04 -0000 @@ -1,7 +1,7 @@ /* * IBM Accurate Mathematical Library * written by International Business Machines Corp. - * Copyright (C) 2001, 2002 Free Software Foundation + * Copyright (C) 2001, 2002, 2004 Free Software Foundation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -46,7 +46,7 @@ double __exp1(double x, double xx, double error); static double log1(double x, double *delta, double *error); -static double log2(double x, double *delta, double *error); +static double log2x(double x, double *delta, double *error); double __slowpow(double x, double y,double z); static double power1(double x, double y); static int checkint(double x); @@ -159,7 +159,7 @@ double __ieee754_pow(double x, double y) /**************************************************************************/ static double power1(double x, double y) { double z,a,aa,error, t,a1,a2,y1,y2; - z = log2(x,&aa,&error); + z = log2x(x,&aa,&error); t = y*134217729.0; y1 = t - (t-y); y2 = y - y1; @@ -272,7 +272,7 @@ static double log1(double x, double *del /* Computing log(x)(x is left argument).The result is return double + delta.*/ /* The result is bounded by error (right argument) */ /****************************************************************************/ -static double log2(double x, double *delta, double *error) { +static double log2x(double x, double *delta, double *error) { int i,j,m; #if 0 int n; --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 191 --=20 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GPG fingerprint =3D 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 --=-=-=-- --==-=-= Content-Type: application/pgp-signature Content-length: 188 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBAD6e6OJpWPMJyoSYRAkkWAJ9WtGXHew9+Jvw/Zv0rgaVk8t2hjQCcC9Ny V+5oiLFhNqPFrt6xAMUQcOA= =I7ch -----END PGP SIGNATURE----- --==-=-=--