While debugging an application of mine, Valgrind threw several errors, some of which might be coming from SFML (Joystick stuff): "dependencies on uninitialized value(s)".
These may be false positives, but I was hoping someone else more familiar with this kind of stuff could have a look, just in case.
non-SFML programs do not have these errors, so it's not likely anything else.
==11127== Conditional jump or move depends on uninitialised value(s)
==11127== at 0x4C2BB89: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11127== by 0x5557660: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.20)
==11127== by 0x4E43EED: sf::priv::JoystickImpl::getJoystickName(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E4461A: sf::priv::JoystickImpl::open(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3B07C: sf::priv::JoystickManager::update() (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3E768: sf::priv::WindowImpl::WindowImpl() (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E42461: sf::priv::WindowImplX11::WindowImplX11(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3D1A2: sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3CF04: sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x40102E: main (in /home/alec/Code/testSFMLleaks/a.out)
==11127== Uninitialised value was created by a stack allocation
==11127== at 0x4E43EBE: sf::priv::JoystickImpl::getJoystickName(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127==
==11127== Conditional jump or move depends on uninitialised value(s)
==11127== at 0x4C2BB98: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11127== by 0x5557660: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.20)
==11127== by 0x4E43EED: sf::priv::JoystickImpl::getJoystickName(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E4461A: sf::priv::JoystickImpl::open(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3B07C: sf::priv::JoystickManager::update() (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3E768: sf::priv::WindowImpl::WindowImpl() (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E42461: sf::priv::WindowImplX11::WindowImplX11(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3D1A2: sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3CF04: sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x40102E: main (in /home/alec/Code/testSFMLleaks/a.out)
==11127== Uninitialised value was created by a stack allocation
==11127== at 0x4E43EBE: sf::priv::JoystickImpl::getJoystickName(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127==
==11127== Use of uninitialised value of size 8
==11127== at 0x550EDA4: std::ctype<wchar_t>::do_widen(char) const (in /usr/lib/libstdc++.so.6.0.20)
==11127== by 0x5291830: sf::String::String(std::string const&, std::locale const&) (in /usr/lib/libsfml-system.so.2.1)
==11127== by 0x4E4462D: sf::priv::JoystickImpl::open(unsigned int) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3B07C: sf::priv::JoystickManager::update() (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3E768: sf::priv::WindowImpl::WindowImpl() (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E42461: sf::priv::WindowImplX11::WindowImplX11(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3D1A2: sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x4E3CF04: sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (in /usr/lib/libsfml-window.so.2.1)
==11127== by 0x40102E: main (in /home/alec/Code/testSFMLleaks/a.out)
==11127== Uninitialised value was created by a stack allocation
==11127== at 0x4E43EBE: sf::priv::JoystickImpl::getJoystickName(unsigned int) (in /usr/lib/libsfml-window.so.2.1)