Error 12115

We have a procedure that run persistently for generating a PDF. Our current version of Progress is 9.1D. We are in the process of upgrading to 10.1C. This code generates warning messages when it starts (below). The code that it is complaining about is also contained in this post.
[FONT=r_ansi][FONT=r_ansi][/FONT][/FONT]
[FONT=r_ansi][FONT=r_ansi]WARNING: Program /pkg3/work/appl/qad/ebcust21/src/pdf_inc.p, Line 1501 is an [/FONT][/FONT][FONT=r_ansi][FONT=r_ansi]expression statement that evaluates to a constant. (12115)[/FONT][/FONT]
[FONT=r_ansi][FONT=r_ansi][/FONT][/FONT]
[FONT=r_ansi][FONT=r_ansi]IF pdfOn < 0 THEN 1.

This code is part of an internal procedure that is passed the value of pdfOn as an integer.

Since this works in 9.1D, I am assuming that there is some reason why OE has issues.

Thanks!
[/FONT]
[/FONT][FONT=r_symbol][FONT=r_symbol]
[/FONT]
[/FONT]
 
OE is just warning you that the code doesn't do anything.

Maybe you already knew that and you're doing it on purpose for a reason that escapes me or maybe it is a previously unnoticed logic error in your code.
 
Tom,
This code does run, but the warning messages pop up when the user launches them. It is messy and I would like to not have them see this message. Can I suppress it somehow?
 
I'm sure that it runs but that particular line should not have any effect. It is, essentially, a no-op. Much like:

Code:
if true then 1.

It seems to me that you must be compiling on the fly if users are seeing that message. I do not see it if I pre-compile the code and run r-code.

You should also be able to comment it out with no ill effects (because it doesn't actually do a darned thing...)

I'd take a look at the surrounding code -- maybe someone meant for something more interesting to happen but got distracted in the midst of writing that snippet of code?
 
Back
Top