Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exclude compiler warning (Read 602 times)
laszlo.frank
Junior Member
**
Offline


Posts: 15
Joined: Feb 27th, 2017
Exclude compiler warning
Oct 15th, 2024 at 4:33pm
Print Post  
There is a deprecation warning for SPIFFS which occures 100+ times in a compilation output and makes very hard to locate a real issue.

Is there any way to exclude it from output ?
Below is the example:

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Exclude compiler warning
Reply #1 - Oct 15th, 2024 at 4:35pm
Print Post  
If the Compiler > Warnings for Project is enabled, then disabling it should help.

Could you attach the complete build output with the settings enabled as shown at the top of the page so we can advise more accurately?

  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 15
Joined: Feb 27th, 2017
Re: Exclude compiler warning
Reply #2 - Oct 15th, 2024 at 4:57pm
Print Post  

Thanks for yout response, please see attached.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 15
Joined: Feb 27th, 2017
Re: Exclude compiler warning
Reply #3 - Oct 15th, 2024 at 5:18pm
Print Post  
As a workaround I hacked fs.h in core library and removed the deprecated attribute, but obviously this is not the ultimate solution.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Exclude compiler warning
Reply #4 - Oct 15th, 2024 at 5:19pm
Print Post  
Thanks for the update.

Can you try:
  1. Opening vMicro > Project Properties
  2. Scroll to the "Extra cpp Flags" entry
  3. Type/Paste in "-Wno-deprecated-declarations" without the double quotes
  4. Click into another box to save the entry
  5. Try compiling again


This should remove the errors for all INO/CPP files, and adding it to the "Extra Flags" option will add it to all compilation statements.

  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 15
Joined: Feb 27th, 2017
Re: Exclude compiler warning
Reply #5 - Oct 15th, 2024 at 5:48pm
Print Post  
Thank you this works very well!
« Last Edit: Oct 15th, 2024 at 5:48pm by laszlo.frank »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Exclude compiler warning
Reply #6 - Oct 18th, 2024 at 1:03pm
Print Post  
Glad to help, we have documented this example and solution on the page below:
https://www.visualmicro.com/page/Ignoring-Specific-Compiler-Warnings.aspx
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint