Gary, Sorry about that. Wonder why I do not get the warning in that function with my compiler.
Anyway, besides the initialization, the function was bogus. Please try the attached patch. On Thu, Jun 25, 2009 at 1:39 AM, <gary.m...@bull.com> wrote: > > Stephane > > When doing the make on the new pfmon-3.9, I get the following errors: > > make[2]: Entering directory `/opt/hpctk/downloads/pfmon/pfmon-3.9 > /pfmon/smpl_mod' > cc -g -ggdb -Wall -Werror -D_REENTRANT > -I/opt/hpctk/gam/install_dir/libpfm-3.9/include -DCONFIG_PFMON_X86_64 > -DPFMON_DEBUG -I. -I.. -D_GNU_SOURCE -c inst_hist_smpl.c > cc1: warnings being treated as errors > inst_hist_smpl.c: In function ‘inst_hist_process_sample_raw’: > inst_hist_smpl.c:61: error: ‘set’ may be used uninitialized in this > function > inst_hist_smpl.c:61: error: ‘regs’ may be used uninitialized in this > function > make[2]: *** [inst_hist_smpl.o] Error 1 > make[2]: Leaving directory `/opt/hpctk/downloads/pfmon/pfmon-3.9 > /pfmon/smpl_mod' > > Looks to me like a couple of missing assignment statements in new code. > ------------------------------------------------------------------------------ > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel >
raw.diff
Description: Binary data
------------------------------------------------------------------------------
_______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel