* * *

Author Topic: Notes and Warnings - display option  (Read 1073 times)

DaveA

  • New member
  • *
  • Posts: 26
Notes and Warnings - display option
« on: July 29, 2017, 09:36:57 pm »
When I compile my application I get loads of Notes and Warnings (another topic). I have failed to switch these off using the Compiler Verbosity Options. No matter if the Show Notes/Warnings option is checked or unchecked they are still listed.

Am I missing something?

Linux: Lazarus 1.6 FPC 3.0.0.
Windows Lazarus 1.6.4 FPC 3.0.2

Dave

howardpc

  • Hero Member
  • *****
  • Posts: 2301
Re: Notes and Warnings - display option
« Reply #1 on: July 29, 2017, 11:44:19 pm »
If you right-click on a message and choose
  Filter non-urgent Messages >
what does it show as the current filter?
Perhaps you just need to change the setting.

DaveA

  • New member
  • *
  • Posts: 26
Re: Notes and Warnings - display option
« Reply #2 on: July 30, 2017, 09:28:00 am »
Thanks, Howard

The filter setting displayed is:

Filter Verbose Messages and below

Thaddy

  • Hero Member
  • *****
  • Posts: 4438
Re: Notes and Warnings - display option
« Reply #3 on: July 30, 2017, 11:35:19 am »
I have written (and am still writing, partially) a wiki entry about the subject: http://wiki.lazarus.freepascal.org/Turn_warnings_and_hints_on_or_off

Maybe the code options can help you if the IDE options are not satisfactory.

It already covers all options.
« Last Edit: July 30, 2017, 12:36:57 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

DaveA

  • New member
  • *
  • Posts: 26
Re: Notes and Warnings - display option
« Reply #4 on: July 30, 2017, 01:31:51 pm »
Thanks, Thaddy

I tried {$warnings off} (and also {$notes off} which is not in your wiki), but neither had any effect.

Thaddy

  • Hero Member
  • *****
  • Posts: 4438
Re: Notes and Warnings - display option
« Reply #5 on: July 30, 2017, 01:37:46 pm »
I can only explain that if some units are *explicitly* compiled with {$warnings on}.
If that is the case examine the units. You may have to do a build instead of a simple compile.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

DaveA

  • New member
  • *
  • Posts: 26
Re: Notes and Warnings - display option
« Reply #6 on: July 30, 2017, 05:02:30 pm »
Thanks for your replies Thaddy

I should have explained that all the notes and warnings were caused by the IBX component that I am using. I tried recompiling that with the new compiler options and a rebuild of Lazarus and my application but I still get all the messages.

I am going to raise the reason for the messages on a separate thread about IBX.


Thaddy

  • Hero Member
  • *****
  • Posts: 4438
Re: Notes and Warnings - display option
« Reply #7 on: July 30, 2017, 08:50:18 pm »
Thanks for your replies Thaddy

I should have explained that all the notes and warnings were caused by the IBX component that I am using. I tried recompiling that with the new compiler options and a rebuild of Lazarus and my application but I still get all the messages.

I am going to raise the reason for the messages on a separate thread about IBX.
Then it is caused by explicit {$warnings on} in the IBX code. That's the only option that causes this. It also tells you something about the quality of that code....
Programmers that have explicitly turned {$warnings on} tend to solve them instead of releasing code that still have them....

If there is another scenario that is NOT in the wiki, plz let me know.
« Last Edit: July 30, 2017, 09:58:20 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

DaveA

  • New member
  • *
  • Posts: 26
Re: Notes and Warnings - display option
« Reply #8 on: July 31, 2017, 08:04:04 pm »
Hi Thaddy

Don't be hard on the IBX team! The notes and warnings are about duplicate units and files because the IBX installation comprises fbintf and ibexpress which share the same code base.

Thaddy

  • Hero Member
  • *****
  • Posts: 4438
Re: Notes and Warnings - display option
« Reply #9 on: July 31, 2017, 09:47:27 pm »
Hi Thaddy

Don't be hard on the IBX team! The notes and warnings are about duplicate units and files because the IBX installation comprises fbintf and ibexpress which share the same code base.
I am not hard. Sharing the same codebase is GOOD. Not separating design-time from run-time is BAD...<gr  >:D8-)
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus