I found another anomaly.
If an internal procedure is called without parens, it's marked as un-used.
Example:
Dcl-proc main;
MyProc; // <= this will cause "Dcl-proc MyProc ;" to be marked as not used
// MyProc(); // had I done this instead, it would not have been marked
End-proc;
Dcl-proc MyProc ;
...
End-proc;
-----Original Message-----
From: Justin Taylor
Sent: Tuesday, November 21, 2017 2:14 PM
To: 'Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries' <wdsci-l@xxxxxxxxxxxx>
Subject: RE: [WDSCI-L] "The prototype is not used" - RDi 9.6
That sounds great, thanks
-----Original Message-----
From: Edmund Reinhardt [mailto:edmund.reinhardt@xxxxxxxxxx]
Sent: Tuesday, November 21, 2017 1:20 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] "The prototype is not used" - RDi 9.6
Hi Justin,
If I understand you correctly, you have the prototypes in the same source file as your procedures and the compile directives can be used to just bring in the prototypes when copied into the calling source.
In this case, it should be possible for a prototype to check if its related procedure has an EXPORT statement and to not annotate it as unused in that case.
I will create an internal work item to try to get this done for the next release.
Keep the feedback coming, it is all appreciated.
Thanks,
|
|
|Edmund Reinhardt
|
|Rational Developer for i
|Architect
|
|IBM
|p:
| 905 413 3125
|w:
| ibm.biz/rdi_hub e:
| edmund.reinhardt@xxxxxxxxx
| m
|
From: Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
To: "Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>
Date: 2017-11-21 12:05 PM
Subject: Re: [WDSCI-L] "The prototype is not used" - RDi 9.6
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>
We use service program source for /INCLUDES to bring in the prototypes, with the help of compile directives.
-----Original Message-----
From: Ken Killian [mailto:kkillian@xxxxxxxxxxxx]
Sent: Monday, November 20, 2017 4:26 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] "The prototype is not used" - RDi 9.6
Justin,
I remove all the porotypes, except for external calls. Not need! <Joy Joy>
Why define it two places? Except if you are using a copy-book for Service program.
But, for you own internal procedures, not needed, so I ALWAYS remove them doing maintenance. I hate change the prototype and the internal definition too. Two places to maintain it. Not need, so I remove them.
-Ken Killian-
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=0kyFXB_yzBfQcuPPlwbzi5YqUaFWncBs2Z72Lm1anfY&s=-1ApV0rSsREjZeF_Jn47DL14Y6Xea_3G6V1jZg9ZbH4&e=
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=0kyFXB_yzBfQcuPPlwbzi5YqUaFWncBs2Z72Lm1anfY&s=kJsod7xfyInC634_HmLZRmm_lYiWoX2hvkLJ8sG41u8&e=
.
As an Amazon Associate we earn from qualifying purchases.