gcc warning from mpz_get_ui

keith.briggs@bt.com keith.briggs at bt.com
Mon Aug 22 16:50:42 CEST 2005

kbriggs at sodium:~> uname -a
Linux sodium.bt-sys.bt.co.uk 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

install at sodium:~/gmp-4.1.4> ./config.guess

install at sodium:~/gmp-4.1.4> ./configfsf.guess

kbriggs at sodium:~> gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.0/configure --enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0

kbriggs at sodium:~> cat gcc_warning.c
#include <gmp.h>
void foo() {
  mpz_t x;

kbriggs at sodium:~> gcc -Wall -O -c gcc_warning.c
gcc_warning.c: In function 'foo':
gcc_warning.c:5: warning: control may reach end of non-void function '__gmpz_get_ui' being inlined

More information about the gmp-bugs mailing list