Commit [ac0257]  Maximize  Restore  History

Fix memset problem in previous commit; fails to compile on Fedora 20

Building oprofile on Fedora 20 pointed out a problem in memset call
from previous commit. The build error is:

In function 'void* memset(void*, int, size_t)',
inlined from 'int operf_record::_start_recoding_new_thread(pid_t)'
at operf_counter.cpp:769:28:
/usr/include/powerpc64le-linux-gnu/bits/string3.h:81:32: error: call
to '__warn_memset_zero_len' declared with attribute warning:
memset used with constant zero length parameter; this could be due
to transposed parameters [-Werror]
__warn_memset_zero_len ();

This patch fixes the problem.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>

Maynard Johnson Maynard Johnson 2014-06-26

changed libperf_events/operf_counter.cpp
libperf_events/operf_counter.cpp Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks