Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369158 - generated instance create function sometimes contains unnecessary initialized variables
Summary: generated instance create function sometimes contains unnecessary initialized...
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Runtime (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sasha Slijepcevic CLA
QA Contact:
URL:
Whiteboard: target:3.23.01
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 17:54 EST by Dave Russo CLA
Modified: 2013-01-24 15:11 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Russo CLA 2012-01-19 17:54:52 EST
I have this warning that I’m trying to figure out how to get rid of:-
"package/cfg/bin/ti_platforms_evm3530_test_dsp/debug/fastcopytest_bios_p64P.c",
line 20372: warning #179-D: variable "args" was declared but never referenced
The corresponding line is this:-

20361 xdc_Ptr ti_sdo_fc_utils_osal_noOS_SemProcessNull_Object__create__S (
  20362     xdc_Ptr oa,
  20363     xdc_SizeT osz,
  20364     const xdc_Ptr aa,
  20365     const ti_sdo_fc_utils_osal_noOS_SemProcessNull___ParamsPtr pa,
  20366     xdc_SizeT psz,
  20367     xdc_runtime_Error_Block* eb )
  20368 {
  20369     ti_sdo_fc_utils_osal_noOS_SemProcessNull_Params prms;
  20370     ti_sdo_fc_utils_osal_noOS_SemProcessNull_Object* obj;
  20371
  20372     ti_sdo_fc_utils_osal_noOS_SemProcessNull_Args__create* args = aa;
  20373     /* common instance initialization */
  20374     obj = xdc_runtime_Core_createObject__I(&ti_sdo_fc_utils_osal_noOS_Se        mProcessNull_Object__DESC__C, oa, osz, &prms, (xdc_Ptr)pa, psz, eb);
  20375     if (obj == NULL) {
Comment 1 Dave Russo CLA 2012-01-22 16:37:30 EST
fixed in 1621 and 1622 (3.23.* and 3.24.*) by adding additional check during big.c generation to ensure that the module has module-specific instance initialization to perform (e.g., it declares an instance state structure).
Comment 2 Gunjan Dang CLA 2012-02-09 19:23:31 EST
Verified this fix using xdctools_3_23_01_39_eng.
The following warning is no longer generated in big.c when I build the same example:-
package/cfg/bin/ti_platforms_evm3530_test_dsp/debug/fastcopytest_bios_p64P.c", line 20231: warning #179-D: variable "args" was declared but never referenced
"package/cfg/bin/ti_platforms_evm3530_test_dsp/debug/fastcopytest_bios_p64P.c", line 20374: warning #179-D: variable "args" was declared but never referenced
Comment 3 Dave Russo CLA 2012-02-09 19:45:50 EST
Thanks Gunjan!
Comment 4 Dave Russo CLA 2013-01-24 15:11:53 EST
xdctools 3.23.05 GA is available from here: http://www.sanb.design.ti.com/tisb_releases/XDCtools/3_23_05_61/