Get rid of some more warnings
This commit is contained in:
parent
4f266a5b15
commit
15c9e5c126
|
@ -165,7 +165,7 @@ dtr_daemon (const dtr_callbacks * cb,
|
|||
if (!foreground)
|
||||
{
|
||||
|
||||
#if defined (HAVE_DAEMON) && !defined (__UCLIBC__)
|
||||
#if defined (HAVE_DAEMON) && !defined (__APPLE__) && !defined (__UCLIBC__)
|
||||
|
||||
if (daemon (true, false) == -1)
|
||||
{
|
||||
|
|
|
@ -7,6 +7,11 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
#ifdef __APPLE__
|
||||
/* OpenSSL "deprecated" as of OS X 10.7, but we still use it */
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <openssl/bn.h>
|
||||
|
|
|
@ -872,7 +872,9 @@ non_sparse_out:
|
|||
errno = code;
|
||||
}
|
||||
|
||||
#ifdef HAVE_FALLOCATE64
|
||||
out:
|
||||
#endif
|
||||
if (!ret)
|
||||
set_system_error (error, errno);
|
||||
|
||||
|
|
|
@ -18,12 +18,6 @@
|
|||
#include "variant-common.h"
|
||||
#include "libtransmission-test.h"
|
||||
|
||||
static inline tr_quark
|
||||
toQuark (const char * str)
|
||||
{
|
||||
return tr_quark_new (str, strlen(str));
|
||||
}
|
||||
|
||||
static int
|
||||
test_elements (void)
|
||||
{
|
||||
|
|
|
@ -348,12 +348,16 @@ swarmUnlock (tr_swarm * swarm)
|
|||
managerUnlock (swarm->manager);
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
static inline int
|
||||
swarmIsLocked (const tr_swarm * swarm)
|
||||
{
|
||||
return tr_sessionIsLocked (swarm->manager->session);
|
||||
}
|
||||
|
||||
#endif /* NDEBUG */
|
||||
|
||||
/**
|
||||
***
|
||||
**/
|
||||
|
|
|
@ -2178,7 +2178,7 @@ torrentCallScript (const tr_torrent * tor, const char * script)
|
|||
for (i = 0; env[i] != NULL; ++i)
|
||||
putenv (env[i]);
|
||||
|
||||
chdir ("/");
|
||||
(void) chdir ("/");
|
||||
|
||||
if (execvp (script, cmd) == -1)
|
||||
tr_logAddTorErr (tor, "error executing script \"%s\": %s", script, tr_strerror (errno));
|
||||
|
|
Loading…
Reference in New Issue