first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/unix/private.h"
|
||||
|
||||
enum {
|
||||
wxJS_AXIS_X = 0,
|
||||
@@ -87,7 +88,7 @@ void* wxJoystickThread::Entry()
|
||||
fd_set read_fds;
|
||||
struct timeval time_out = {0, 0};
|
||||
|
||||
FD_ZERO(&read_fds);
|
||||
wxFD_ZERO(&read_fds);
|
||||
while (true)
|
||||
{
|
||||
if (TestDestroy())
|
||||
@@ -100,9 +101,9 @@ void* wxJoystickThread::Entry()
|
||||
else
|
||||
time_out.tv_usec = 10 * 1000; // check at least every 10 msec in blocking case
|
||||
|
||||
FD_SET(m_device, &read_fds);
|
||||
wxFD_SET(m_device, &read_fds);
|
||||
select(m_device+1, &read_fds, NULL, NULL, &time_out);
|
||||
if (FD_ISSET(m_device, &read_fds))
|
||||
if (wxFD_ISSET(m_device, &read_fds))
|
||||
{
|
||||
memset(&j_evt, 0, sizeof(j_evt));
|
||||
read(m_device, &j_evt, sizeof(j_evt));
|
||||
|
Reference in New Issue
Block a user