10.2A compile warning message help

LarryD

Active Member
We are currently converting some of our customers from 9.x and 10.x to 10.2A. When compiling our existing code, we are getting a "strange" warning message:

WARNING: Executable statement at line ### of file <program> will not be reached. (15090)

We've not seen this error before that I am aware of, and there is nothing listed in the Progress kbase. It is in only some of our code, but there is nothing special that I can see as to why this warning exists.

Has anyone else encountered this, and what (if anything) is the "fix", or at least an explanation?

Thanks!
Larry
 
Knowledgebase P137640 said:
The 15090 warning was added in OpenEdge 10.2A. The compiler was
enhanced to add "dead code" detection. When you get the 15090 warning
you should consider it as a warning that the code noted in the error
will never be executed and should be looked at.

For example, the following code would generate the 15090 warning:

MESSAGE '1' VIEW-AS ALERT-BOX.
RETURN.
MESSAGE '2' VIEW-AS ALERT-BOX.

This code will generate the 15090 warning because the second MESSAGE
statement will never, ever be executed because of the RETURN
statement.

So the fix is to remove the redundant code.
 
Thanks for the find and the insight... but I wonder why my search of the Progress kbase didn't show that. Ah well.


Once again, danke!
 
Thanks for the find and the insight... but I wonder why my search of the Progress kbase didn't show that. Ah well.

Once again, danke!

Bitte schön.

I used the downloadable knowledgebase from a couple of months ago. I tried to find a link to the solution online for you, but on the new site, I was unable even to find the knowledgebase...
 
Back
Top