fixed some warnings
This commit is contained in:
parent
82823c62d9
commit
63a2522014
|
@ -269,8 +269,6 @@ void bind_torrent_handle()
|
||||||
void (torrent_handle::*resolve_countries1)(bool) = &torrent_handle::resolve_countries;
|
void (torrent_handle::*resolve_countries1)(bool) = &torrent_handle::resolve_countries;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return_value_policy<copy_const_reference> copy;
|
|
||||||
|
|
||||||
#define _ allow_threads
|
#define _ allow_threads
|
||||||
|
|
||||||
class_<torrent_handle>("torrent_handle")
|
class_<torrent_handle>("torrent_handle")
|
||||||
|
|
|
@ -1841,7 +1841,7 @@ namespace aux {
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(!params.save_path.empty());
|
TORRENT_ASSERT(!params.save_path.empty());
|
||||||
|
|
||||||
if (params.ti && params.ti->files().num_files() == 0)
|
if (params.ti && params.ti->num_files() == 0)
|
||||||
{
|
{
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
throw std::runtime_error("no files in torrent");
|
throw std::runtime_error("no files in torrent");
|
||||||
|
|
Loading…
Reference in New Issue