]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmds/cosd: Fix IsHeapProfilerRunning implicit return type cast.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Wed, 2 Mar 2011 21:39:09 +0000 (13:39 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 2 Mar 2011 21:39:09 +0000 (13:39 -0800)
commit75e2a0773928cd133f5f07e91dc1bc70c9ff1c34
tree44b3bc908eb0d3b4d74698fb373b665677e34d55
parenta6167332fb7bff23a2907bf69166779e63fe836c
cmds/cosd: Fix IsHeapProfilerRunning implicit return type cast.

G++ complains about the difference between the return type of tcmalloc's
IsHeapProfilerRunning (int) and the return type of the function that
g_conf.profiler_running is supposed to point to (bool). We could
probably get away with a type-cast, but as a compiler developer and
former C++ language lawyer, I'd rather not take the risk of destroying
the universe by invoking undefined behavior ;-)

Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/cmds.cc
src/cosd.cc