Project

General

Profile

Actions

Emulator Issues #641

closed

linux: r2410 DriveUtil.cpp gcc cast problem

Added by siliconjoe over 15 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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.

Actions

Also available in: Atom PDF