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 typedef warnings removal (Read 683 times)
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
typedef warnings removal
May 11th, 2022 at 7:05pm
Print Post  
how can  i remove this warning 

error.h: 29:1: warning: 'typedef' was ignored in this declaration
   typedef struct errorcodes {
   ^~~~~~~
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: typedef warnings removal
Reply #1 - May 12th, 2022 at 8:37am
Print Post  
If you give the struct a name the warning should be removed e.g. myErrorCodes in the below snippet:
Code
Select All
typedef struct errorcodes {
    int ERRONE = 0;
    int ERRTWO = 1;
} myErrorCodes; 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint