Emulator Issues #641
closedlinux: r2410 DriveUtil.cpp gcc cast problem
0%
Description
Hi there,
Compiling trunk on ubuntu 8.10 with gcc 4.3.2 leads to the following cast
error:
Compiling Build/Linux-x86_64-release/Source/Core/Common/Src/DriveUtil.o
Source/Core/Common/Src/DriveUtil.cpp: In function 'void
GetAllRemovableDrives(std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >)':
Source/Core/Common/Src/DriveUtil.cpp:33: error: cast from 'void' to 'int'
loses precision
scons: *** [Build/Linux-x86_64-release/Source/Core/Common/Src/DriveUtil.o]
Error 1
scons: building terminated because of errors.
Adding the gcc compile flag '-fpermissive' to SConstruct makes the
compilation end up fine, but that's "problem dodging" :)
BTW on Linux wouldn't it make sense to use /dev/dvd* instead od
/dev/cdrom*? HAL support would be even better :)
Thanks for looking into this and great job guys.
Updated by lannyboyz almost 16 years ago
i had it /dev/cdrom* too. but lpfaint99 said that's way. wondering @@"
Updated by lpfaint99 almost 16 years ago
- Status changed from New to Fixed
just temp code to test everything else, nakeee fixed it with r2414
Updated by lpfaint99 almost 16 years ago
ok so it was r2413 :p
you removed DriveUtil.cpp
odd though, it compiled just fine on my ubuntu vm