octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

‘pi’ shadows a global declaration


From: Dmitri A. Sergatskov
Subject: ‘pi’ shadows a global declaration
Date: Sun, 9 Jul 2017 22:30:55 -0500

Probably no a big problem. Mostly fyi:

g++ -DHAVE_CONFIG_H -I. -I../src -Iliboctave -I../src/liboctave -I../src/liboctave/array -Iliboctave/numeric -I../src/liboctave/numeric -Iliboctave/operators -I../src/liboctave/operators -I../src/liboctave/system -I../src/liboctave/util -I../src/liboctave/wrappers -I../src/liboctave/external/Faddeeva -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT liboctave/numeric/liboctave_numeric_libnumeric_la-oct-convn.lo -MD -MP -MF liboctave/numeric/.deps/liboctave_numeric_libnumeric_la-oct-convn.Tpo -c ../src/liboctave/numeric/oct-convn.cc  -fPIC -DPIC -o liboctave/numeric/.libs/liboctave_numeric_libnumeric_la-oct-convn.o
../src/liboctave/numeric/lo-specfun.cc: In function ‘Complex octave::math::rc_log1p(double)’:
../src/liboctave/numeric/lo-specfun.cc:3452:20: warning: declaration of ‘pi’ shadows a global declaration [-Wshadow]
       const double pi = 3.14159265358979323846;
                    ^~
../src/liboctave/numeric/lo-specfun.cc:3198:25: note: shadowed declaration is here
     static const double pi = 3.14159265358979323846;
                         ^~
../src/liboctave/numeric/lo-specfun.cc: In function ‘FloatComplex octave::math::rc_log1p(float)’:
../src/liboctave/numeric/lo-specfun.cc:3460:19: warning: declaration of ‘pi’ shadows a global declaration [-Wshadow]
       const float pi = 3.14159265358979323846f;
                   ^~
../src/liboctave/numeric/lo-specfun.cc:3198:25: note: shadowed declaration is here
     static const double pi = 3.14159265358979323846;
                         ^~

Dmitri.
--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]