Skip to content
Snippets Groups Projects
Commit 6621c97c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Disable MSVC warnings 4244 and 4267.

The alternative is to explicitly copy/paste the type everywhere
forcing the compiler to do the only thing it could possibly do,
and making it painful to change a type later.

Honestly, in my opinion, these warnings should just be disabled
completely everywhere.
parent 1f2f00b0
No related branches found
No related tags found
No related merge requests found
Pipeline #5743 passed
......@@ -54,6 +54,16 @@
#include "base64.h"
#include <crc16.h>
/*
* Disable warnings for well-defined standard C operations
* 4244 appears to be for implicit conversions
* warning C4244: '=': conversion from 'uint64_t' to 'int', possible loss of data
* 4267 is the same thing, but from size_t.
*/
#ifdef _MSC_VER
#pragma warning(disable : 4244 4267)
#endif
// Hack for Visual Studio 2022
#ifndef UINT64_MAX
#define UINT64_MAX UINT64_C(-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment