Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4297: [PATCH] Fix for warning: enumeral and non-enumeral type in conditional expression
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-01 17:01:14
#4297: [PATCH] Fix for warning: enumeral and non-enumeral type in conditional
expression
--------------------------------------------+-------------------------------
Reporter: Lénaïc Huard <lhuard@â¦> | Owner: igaztanaga
Type: Patches | Status: closed
Milestone: Boost 1.45.0 | Component: interprocess
Version: Boost Development Trunk | Severity: Cosmetic
Resolution: fixed | Keywords:
--------------------------------------------+-------------------------------
Comment (by visionofarun@â¦):
Hi,
I'm reopening the ticket. This ticket appears in Boost 1.45.0 release
notes. But seems like its not fixed yet. There are still warning messages
with "g++ -W".
{{{
#include <boost/interprocess/managed_shared_memory.hpp>
int main()
{
boost::interprocess::managed_shared_memory *mem;
return 0;
}
}}}
{{{
g++ -c -W -fvisibility=hidden -g -Wall 1.cpp -o 1
-I/usr/local/include/boost-1.45.0/
In file included from
/usr/local/include/boost-1.45.0/boost/interprocess/detail/managed_memory_impl.hpp:22,
from
/usr/local/include/boost-1.45.0/boost/interprocess/managed_shared_memory.hpp:21,
from 1.cpp:1:
/usr/local/include/boost-1.45.0/boost/interprocess/mem_algo/rbtree_best_fit.hpp:321:
warning: enumeral and non-enumeral type in conditional expression
1.cpp: In function 'int main()':
1.cpp:5: warning: unused variable 'mem'
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4297#comment:2> 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-02-16 18:50:05 UTC