diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-04-07 11:03:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-08 13:59:30 +0200 |
commit | dc1b6c5a00f938474a385c2af8aeef56583b989c (patch) | |
tree | df964cb0d76dfcaf68a50eee08eb755972d4562d /lib/warnless.h | |
parent | 817d1c01064ac81e9609819b15738ee540ef056c (diff) | |
download | curl-dc1b6c5a00f938474a385c2af8aeef56583b989c.tar.gz |
build: cleanup to fix clang warnings/errors
unit1309 and vtls/gtls: error: arithmetic on a null pointer treated as a
cast from integer to pointer is a GNU extension
Reported-by: Rikard Falkeborn
Fixes #2466
Closes #2468
Diffstat (limited to 'lib/warnless.h')
-rw-r--r-- | lib/warnless.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/warnless.h b/lib/warnless.h index efd552a60..f6a2d744b 100644 --- a/lib/warnless.h +++ b/lib/warnless.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -26,11 +26,6 @@ #include <curl/curl.h> /* for curl_socket_t */ #endif -#define CURLX_POINTER_TO_INTEGER_CAST(p) \ - ((char *)(p) - (char *)NULL) -#define CURLX_INTEGER_TO_POINTER_CAST(i) \ - ((void *)((char *)NULL + (i))) - unsigned short curlx_ultous(unsigned long ulnum); unsigned char curlx_ultouc(unsigned long ulnum); |