SFML community forums

Help => General => Topic started by: wmbuRn on August 15, 2013, 03:07:28 am

Title: sfml 2.1 build log shows some warnings
Post by: wmbuRn 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.

info:
Linux 3.2.0-51 Kernel
Gcc 4.6.3
GNU Make 3.81
Title: Re: sfml 2.1 build log shows some warnings
Post by: OniLinkPlus 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.