GCC (but not G++) doesn't enable this warning unless requested with 
`-Wstrict-prototypes` explicitly.

------------------                               
Best regards,
lh_mouse
2016-08-22

-------------------------------------------------------------
发件人:David Wohlferd <d...@limegreensocks.com>
发送日期:2016-08-22 11:20
收件人:mingw-w64-public@lists.sourceforge.net
抄送:
主题:[Mingw-w64-public] [PATCH] for missing voids

To my surprise, these two statements have (slightly) different meanings:

   STDAPI MFUnregisterPlatformFromMMCSS ();
   STDAPI MFUnregisterPlatformFromMMCSS (void);

And clang complains about it (warning: function with no prototype cannot 
use the stdcall calling convention).

I have added 'void' every place clang complained (attached).

dw


------------------------------------------------------------------------------

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public




------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to