lrexlib: Disable MSVC narrowing warnings

This commit is contained in:
João Valverde 2022-06-02 13:14:37 +01:00 committed by A Wireshark GitLab Utility
parent caacdae870
commit 693820b90d
2 changed files with 16 additions and 0 deletions

View File

@ -28,6 +28,14 @@
#include <wireshark.h>
DIAG_OFF_CLANG(shorten-64-to-32)
#ifdef _MSC_VER
/* disable: " warning C4244: '=': conversion from 'lua _Integer' to 'int',
* possible loss of data" */
#pragma warning(disable:4244)
/* warning C4267: '+=': conversion from 'size_t' to 'int',
* possible loss of data */
#pragma warning(disable:4267)
#endif
#include <stdlib.h>
#include <ctype.h>

View File

@ -29,6 +29,14 @@
#include <wireshark.h>
DIAG_OFF_CLANG(shorten-64-to-32)
DIAG_OFF_CLANG(comma)
#ifdef _MSC_VER
/* disable: " warning C4244: '=': conversion from 'lua _Integer' to 'int',
* possible loss of data" */
#pragma warning(disable:4244)
/* warning C4267: '+=': conversion from 'size_t' to 'int',
* possible loss of data */
#pragma warning(disable:4267)
#endif
#define malloc_free free
#define rex_atoi atoi