Recently there was this change that changes pfmon_sdesc_t and removes
new_cmdline:

@@ -1269,7 +1340,7 @@ task_pfm_init(pfmon_sdesc_t *sdesc, int from_exec, 
pfmon_ctx_t *ctx)
                task_collect_results(sdesc, 0);
        }

-       strcpy(sdesc->cmdline, sdesc->new_cmdline);
+       strcpy(sdesc->cmd, sdesc->cmd);

        sdesc->exec_count++;

In my environment this causes this warning:

pfmon_task.c: In function `task_pfm_init':
pfmon_task.c:1343: warning: statement with no effect
cc -I/home/rrichter/perfmon2/dev/.install/libpfm/usr/include 
-L/home/rrichter/perfmon2/dev/.install/libpfm/usr/lib  -g -ggdb -Wall -Werror 
-D_REENTRANT -I/home/rrichter/perfmon2/dev/.install/libpfm/usr/include 
-DCONFIG_PFMON_X86_64 -DPFMON_DEBUG  -g -ggdb -Wall -Werror -D_REENTRANT 
-I/home/rrichter/perfmon2/dev/.install/libpfm/usr/include -DCONFIG_PFMON_X86_64 
-DPFMON_DEBUG -DDATADIR=\"/usr/share/pfmon\" -I. -I/usr/include/libelf 
-D_GNU_SOURCE -DPFMON_DEBUG -g -c pfmon_gen_ia32.c
make[1]: *** [pfmon_task.o] Error 1

This patch removes the strcpy() call since it is no longer needed.

Signed-off-by: Robert Richter <robert.rich...@amd.com>
---
 pfmon/pfmon_task.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/pfmon/pfmon_task.c b/pfmon/pfmon_task.c
index 5a09e6c..526bf2c 100644
--- a/pfmon/pfmon_task.c
+++ b/pfmon/pfmon_task.c
@@ -1340,8 +1340,6 @@ task_pfm_init(pfmon_sdesc_t *sdesc, int from_exec, 
pfmon_ctx_t *ctx)
                task_collect_results(sdesc, 0);
        }
 
-       strcpy(sdesc->cmd, sdesc->cmd);
-
        sdesc->exec_count++;
 
        /*
-- 
1.6.1.2



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to