Fix gcc warnings.

This commit is contained in:
XMRig 2017-08-14 09:53:48 +03:00
parent a07b0e5953
commit eb140fd30f
3 changed files with 6 additions and 0 deletions
src
3rdparty/jansson
net

View file

@ -5,7 +5,9 @@
* it under the terms of the MIT license. See LICENSE for details. * it under the terms of the MIT license. See LICENSE for details.
*/ */
#ifdef _MSC_VER
#pragma warning(disable:4090) #pragma warning(disable:4090)
#endif
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE

View file

@ -5,7 +5,9 @@
* it under the terms of the MIT license. See LICENSE for details. * it under the terms of the MIT license. See LICENSE for details.
*/ */
#ifdef _MSC_VER
#pragma warning(disable:4334) #pragma warning(disable:4334)
#endif
#if HAVE_CONFIG_H #if HAVE_CONFIG_H
#include <jansson_private_config.h> #include <jansson_private_config.h>

View file

@ -21,7 +21,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifdef _MSC_VER
#pragma warning(disable:4244) #pragma warning(disable:4244)
#endif
#include <inttypes.h> #include <inttypes.h>
#include <memory> #include <memory>