From dcfcdd00d89ef0de2dd0425f6d90b2291aca853c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 8 Jan 2019 11:38:01 -0500 Subject: [PATCH] lib/asn1: WIN32 suppress "unreferenced local variable" warning the code generated by asn1_compile.exe includes a large number of unreferenced local variables. The resulting warnings drown out other potentially more serious warnings. This change suppresses the C4101 warnings in the generated source files. Change-Id: I17642ff427f457c885b1eb0e62436f3bc9057ee1 --- lib/asn1/gen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/asn1/gen.c b/lib/asn1/gen.c index 3773647c2..b481e1d14 100644 --- a/lib/asn1/gen.c +++ b/lib/asn1/gen.c @@ -388,6 +388,9 @@ generate_header_of_codefile(const char *name) fprintf (codefile, "#include \n\n"); +#ifdef _WIN32 + fprintf(codefile, "#pragma warning(disable: 4101)\n\n"); +#endif } void