mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed some GCC warnings for Werror
This commit is contained in:
parent
b5498818a3
commit
5a4b1d2f03
@ -486,10 +486,10 @@ unsigned long _GeoIP_lookupaddress (const char *host) {
|
||||
struct hostent phe2;
|
||||
struct hostent * phe = &phe2;
|
||||
char *buf = NULL;
|
||||
int buflength = 16384;
|
||||
int herr = 0;
|
||||
int result = 0;
|
||||
#ifdef HAVE_GETHOSTBYNAME_R
|
||||
int buflength = 16384;
|
||||
int herr = 0;
|
||||
buf = malloc(buflength);
|
||||
#endif
|
||||
if (addr == INADDR_NONE) {
|
||||
|
@ -25,8 +25,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if _MSC_VER >= 1400
|
||||
#if defined _MSC_VER && _MSC_VER >= 1400
|
||||
/* Disable deprecation warnings concerning unsafe CRT functions */
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
|
||||
@ -36,7 +35,6 @@ extern "C" {
|
||||
/* Disable deprecation warnings because MSVC8 seemingly thinks ISO C++ conformant functions are deprecated. */
|
||||
#pragma warning (disable : 4996)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user