Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfml 2.1 build log shows some warnings  (Read 1890 times)

0 Members and 1 Guest are viewing this topic.


  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • Email
sfml 2.1 build log shows some warnings
« on: August 15, 2013, 03:07:28 am »
http://pastebin.com/SYvGB6N5  << entire build log.

Actual warning is on 36%
[ 36%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Linux/JoystickImpl.cpp.o
/home/xwm/Downloads/SFML-2.1/src/SFML/Window/Linux/JoystickImpl.cpp: In static member function ‘static bool sf::priv::JoystickImpl::isConnected(unsigned int)’:
/home/xwm/Downloads/SFML-2.1/src/SFML/Window/Linux/JoystickImpl.cpp:123:51: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]

Have i done something wrong? I installed sfml after it and sfml is working. Havent tested joystick so far.

Linux 3.2.0-51 Kernel
Gcc 4.6.3
GNU Make 3.81


  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Re: sfml 2.1 build log shows some warnings
« Reply #1 on: August 15, 2013, 03:49:23 am »
There's nothing wrong with that warning. That's just there because Laurent decided not to use the return value from the mentioned function for anything.
I use the latest build of SFML2