On 12/15/2017 12:54 PM, Gisle Vanem wrote: > Tim Rühsen wrote: > >> Attached is a quick commit with a new lib/pragmas.h. Sorry, I currently >> don't have time for anything more (e.g. a module). > > These are nice. MSVC also has the '__pragma()' keyword > documented here: > https://msdn.microsoft.com/en-us/library/d9x1s805.aspx > > But that would need a full set of 'NOWARN_xx(a)' > for all warnings needed. E.g. > __pragma(warning(disable: 4101)) for 'unreferenced local variable' >
We would need MSVC variants of NOWARN and NOWARN_PUSH, e.g. NOWARN_MSVC(4705 4706) or NOWARN_PUSH_MSVC(4705 4706). Maybe you could add a tested version ? Regards, Tim
signature.asc
Description: OpenPGP digital signature