From 79f790c2b9d6a368f61a99af07d04ed9348ca504 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 8 Apr 2013 14:40:21 -0500 Subject: Fixes for GCC 4.7 Change-Id: Ief0b9202e13bd70cf0de84ca3cb20f5c6df4d3d8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4035 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/usr/runtime/test/runtimeattrstest.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/usr/runtime/test') diff --git a/src/usr/runtime/test/runtimeattrstest.H b/src/usr/runtime/test/runtimeattrstest.H index 7ab4b1592..5fedfe42c 100644 --- a/src/usr/runtime/test/runtimeattrstest.H +++ b/src/usr/runtime/test/runtimeattrstest.H @@ -142,7 +142,7 @@ class RuntimeAttrsTest: public CxxTest::TestSuite } } attr++; - } + } if( attr != sysdata->numAttr ) { @@ -423,6 +423,7 @@ class RuntimeAttrsTest: public CxxTest::TestSuite 0, sys_data_addr, sys_data_size ); + if (errhdl) delete errhdl; return( (hsvc_system_data_t*)(sys_data_addr) ); }; hsvc_node_data_t* getNodePtr(void) @@ -434,6 +435,7 @@ class RuntimeAttrsTest: public CxxTest::TestSuite 0, node_data_addr, node_data_size ); + if (errhdl) delete errhdl; return( (hsvc_node_data_t*)(node_data_addr) ); }; -- cgit v1.2.3