msvc: add missing push/pop for warning pragmas

Also fix indentation/formatting around similar pragmas.

Closes #16101
This commit is contained in:
Viktor Szakats 2025-01-27 15:43:32 +01:00
parent 108b2153ac
commit 23b41224e3
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 26 additions and 16 deletions

View file

@ -27,8 +27,8 @@
#include "memdebug.h"
#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
static void showem(CURL *easy, unsigned int type)
{
@ -41,6 +41,9 @@ static void showem(CURL *easy, unsigned int type)
prev = header;
}
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
static size_t write_cb(char *data, size_t n, size_t l, void *userp)
{