Subject: [Boost-bugs] [Boost C++ Libraries] #12971: g++ on Windows: warning: converting to non-pointer type from NULL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-14 12:58:41
#12971: g++ on Windows: warning: converting to non-pointer type from NULL
-------------------------------------------------+-------------------------
Reporter: Fabian Meyer <mail@â¦> | Owner: atompkins
Type: Bugs | Status: new
Milestone: To Be Determined | Component: uuid
Version: Boost 1.63.0 | Severity: Problem
Keywords: uuid, windows, warning, conversion, |
non-pointer, null |
-------------------------------------------------+-------------------------
The following minimal program "error.cpp" generates the warning:
{{{
#include <boost/uuid/random_generator.hpp>
int main()
{
boost::uuids::uuid id = boost::uuids::random_generator()();
}
}}}
Compiling on Windows (MinGW) with
{{{
g++ -I D:/libraries/boost_1_63_0/ error.cpp
}}}
yields the following message:
{{{
In file included from
D:/libraries/boost_1_63_0/boost/uuid/random_generator.hpp:12:0,
from error.cpp:1:
D:/libraries/boost_1_63_0/boost/uuid/seed_rng.hpp: In constructor
'boost::uuids::detail::seed_rng::seed_rng()':
D:/libraries/boost_1_63_0/boost/uuid/seed_rng.hpp:96:23: warning:
converting to non-pointer type 'boost::detail::winapi::HCRYPTPROV_ {aka
long unsigned int}' from NULL [-Wconversion-null]
, random_(NULL)
^
D:/libraries/boost_1_63_0/boost/uuid/seed_rng.hpp:106:21: warning:
converting to non-pointer type 'boost::detail::winapi::HCRYPTPROV_ {aka
long unsigned int}' from NULL [-Wconversion-null]
random_ = NULL;
^
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12971> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-04-14 13:02:14 UTC