__GMP_WITHIN_GMP error when building mpc-0.9 as dynamic library

Andreas Enge andreas.enge at inria.fr
Fri Feb 17 17:55:15 CET 2012


On Fri, Feb 17, 2012 at 05:24:03PM +0100, Marc Glisse wrote:
> >>-Werror -Wdeclaration-after-statement -Wundef -Wshadow
> Any idea why mpc wants this flag? There is a reason why it is not
> even part of -Wextra...

It is only used in the development versions and disabled for releases,
as a paranoid way of making sure we are as portable as possible.
The idea is normally to catch problems in mpc, not in its dependencies...

> In the particular case of __GMP_WITHIN_GMP and __GMP_WITHIN_GMPXX,
> it seems that using #ifdef instead of #if would be fine.

It looks like a safe change to me, and would not require much effort.
Strangely, the warning message occurs only with Mingw and not with
GNU/Linux.

Andreas


More information about the gmp-bugs mailing list