How can I remove the VS warning C4091: 'typedef ' : ignored on left of 'SPREADSHEET' when no variable is declared

后端 未结 5 1833
长情又很酷
长情又很酷 2021-02-19 10:53

This warning is triggered multiple times in my code by the same declaration, which reads :

// Spreadsheet structure
typedef struct SPREADSHEET
{    
      int ID         


        
5条回答
  •  再見小時候
    2021-02-19 11:36

    You need to add some identifier before the terminating ;, e.g.:

    typedef struct BLAH { ... } BLAH;
    

提交回复
热议问题