Opened 10 years ago

Closed 10 years ago

#7096 closed Bugs (fixed)

warning: static local variables of extern inline function are not resolved to single copy.

Reported by: 1czajnik@… Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.50.0 Severity: Cosmetic
Keywords: Cc:

Description

Hello,

My TI compiler reports the following warning:

warning: static local variables of extern inline function are not resolved to single copy. Not ANSI C++ Compliant

in boost/random/detail/large_arithmetic.hpp", line 34 and 36.

Those variables are constant built-in integers, so it seems reasonable to simply remove the 'static' word in these cases. Would such a change be welcome?

Regards, Kris

Change History (2)

comment:1 by Steven Watanabe, 10 years ago

I don't see a problem with this change. It doesn't hurt readability. However, it's low priority, since it's only a warning on a compiler that isn't widely used.

comment:2 by Steven Watanabe, 10 years ago

Resolution: fixed
Status: newclosed

(In [80992]) Remove static. Fixes #7096

Note: See TracTickets for help on using tickets.