updated README.me, suppress "-Wunused-function" in crypto lock function in network.c
This commit is contained in:
parent
e409e816eb
commit
20577e516c
|
@ -94,12 +94,6 @@ operating system as me, you need ``libgumbo-dev``, ``libfuse-dev``,
|
|||
If you run Debian Stretch, and you have OpenSSL 1.0.2 installed, and you get
|
||||
warnings that look like below during compilation,
|
||||
|
||||
network.c:70:22: warning: ‘thread_id’ defined but not used [-Wunused-function]
|
||||
static unsigned long thread_id(void)
|
||||
^~~~~~~~~
|
||||
network.c:57:13: warning: ‘lock_callback’ defined but not used [-Wunused-function]
|
||||
static void lock_callback(int mode, int type, char *file, int line)
|
||||
^~~~~~~~~~~~~
|
||||
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
|
||||
|
||||
then you need to check if ``libssl1.0-dev`` had been installed properly. If you
|
||||
|
|
|
@ -30,6 +30,8 @@ static pthread_mutex_t curl_lock;
|
|||
/** \brief network configuration */
|
||||
|
||||
/* -------------------- Functions -------------------------- */
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
static void crypto_lock_callback(int mode, int type, char *file, int line)
|
||||
{
|
||||
(void)file;
|
||||
|
@ -48,6 +50,7 @@ static unsigned long thread_id(void)
|
|||
ret = (unsigned long)pthread_self();
|
||||
return ret;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
static void crypto_lock_init(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue