Changeset 14640


Ignore:
Timestamp:
Dec 28, 2015, 11:53:55 PM (5 years ago)
Author:
mikedld
Message:

Get rid of some more warnings

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon-posix.c

    r14486 r14640  
    166166    {
    167167
    168 #if defined (HAVE_DAEMON) && !defined (__UCLIBC__)
     168#if defined (HAVE_DAEMON) && !defined (__APPLE__) && !defined (__UCLIBC__)
    169169
    170170      if (daemon (true, false) == -1)
  • trunk/libtransmission/crypto-utils-openssl.c

    r14576 r14640  
    88 */
    99
     10#ifdef __APPLE__
     11 /* OpenSSL "deprecated" as of OS X 10.7, but we still use it */
     12 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     13#endif
     14
    1015#include <assert.h>
    1116
  • trunk/libtransmission/file-posix.c

    r14614 r14640  
    873873    }
    874874
     875#ifdef HAVE_FALLOCATE64
    875876out:
     877#endif
    876878  if (!ret)
    877879    set_system_error (error, errno);
  • trunk/libtransmission/json-test.c

    r14522 r14640  
    1818#include "variant-common.h"
    1919#include "libtransmission-test.h"
    20 
    21 static inline tr_quark
    22 toQuark (const char * str)
    23 {
    24   return tr_quark_new (str, strlen(str));
    25 }
    2620
    2721static int
  • trunk/libtransmission/peer-mgr.c

    r14636 r14640  
    349349}
    350350
     351#ifndef NDEBUG
     352
    351353static inline int
    352354swarmIsLocked (const tr_swarm * swarm)
     
    354356  return tr_sessionIsLocked (swarm->manager->session);
    355357}
     358
     359#endif /* NDEBUG */
    356360
    357361/**
  • trunk/libtransmission/torrent.c

    r14634 r14640  
    21792179            putenv (env[i]);
    21802180
    2181           chdir ("/");
     2181          (void) chdir ("/");
    21822182
    21832183          if (execvp (script, cmd) == -1)
Note: See TracChangeset for help on using the changeset viewer.