mirror of
https://github.com/curl/curl.git
synced 2026-07-29 21:48:04 +03:00
msvc: add missing push/pop for warning pragmas
Also fix indentation/formatting around similar pragmas. Closes #16101
This commit is contained in:
parent
108b2153ac
commit
23b41224e3
7 changed files with 26 additions and 16 deletions
|
|
@ -119,8 +119,8 @@ void ourWriteOutJSON(FILE *stream, const struct writeoutvar mappings[],
|
|||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
/* warning C4706: assignment within conditional expression */
|
||||
#pragma warning(disable:4706)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4706) /* assignment within conditional expression */
|
||||
#endif
|
||||
|
||||
void headerJSON(FILE *stream, struct per_transfer *per)
|
||||
|
|
@ -169,3 +169,7 @@ void headerJSON(FILE *stream, struct per_transfer *per)
|
|||
}
|
||||
fputs("\n}", stream);
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue