Opened 10 years ago

Closed 10 years ago

#7641 closed Bugs (duplicate)

g++ 4.7 inline warning

Reported by: oxoocoffee Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

#include <boost/random/mersenne_twister.hpp>

int main(int argc, char* argv[]) {

return 0;

}

g++ -m64 -c -g -march=core2 -mtune=core2 -pedantic -Wunused-variable -Wno-deprecated -Wno-long-long -pipe -Wall -D_REENTRANT -DLINUX -I/usr/local/boost/include test.cpp

/usr/local/boost/include/boost/random/detail/integer_log2.hpp:71:35: warning: always_inline function might not be inlinable [-Wattributes]

Fix change

BOOST_RANDOM_DETAIL_CONSTEXPR int integer_log2(T t)

to

BOOST_RANDOM_DETAIL_CONSTEXPR inline int integer_log2(T t)

Change History (2)

comment:1 by viboes, 10 years ago

Component: Nonerandom
Owner: set to No-Maintainer

comment:2 by Steven Watanabe, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicates #6854.

Note: See TracTickets for help on using tickets.