Jump to content
Sign in to follow this  
PaPaNi

Warnings after Build/Compile

Recommended Posts

Hey, Community!

Given:

- Delphi 2007

- One Unit, where should be showed one warning, because one variable is deprecated

- Project options -> Compiler messages: Show warnings and show hints is ON

- All warnings in the list except platform symbol, platform unit, unsafe type, unsafe code and unsafe typecast is ON

Problem:

1. I do Build and get no warnings. DCU file date/time is changed. Then I do Compile - no warnings again.

2. I change this unit (one space symbol is added). I do Build again - no warnings. Date/time of DCU file is changed.

3. I change this unit again and now Compile (without Build). This changes the DCU file date/time again, but in this case I see one warning!

I figured, that Build does exactly the same as Compile, but with all units regardless of whether they have changed. I.e. I expect to see the same warning after Build too.

Im wrong/its a bug/its a future/one option must be changed? I want to see this warning after Build too.

Any ideas are welcom! Thanks!

Share this post


Link to post

Sometimes this scenario happens to me:

  1. Compile - error
  2. Build - no error
  3. Compile - no error

It will probably be similar in your case.

Share this post


Link to post

try "delete" the xxxx.DPROJ file, then, your IDE will create a new file for you!

--- note: if you use any config specific, of course, it will be delete too! but you can re-do it!

Share this post


Link to post
1 hour ago, PaPaNi said:

2. I change this unit (one space symbol is added).

white space is ignored.  Change a line of code and see what happens or add a method or Property to get a full rebuild.  Besides allowing the IDE to compile only the changed code only the warnings in the unit recompiled will be lit.

 

It would nice though if the mapfile viewer would get the measles for warnings like VS. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×