Open AMDmi3 opened 6 years ago
Application.cpp:433:25: error: ordered comparison between pointer and zero ('void *' and 'int') if( m_raiseHotKeyId >= 0 ) ~~~~~~~~~~~~~~~ ^ ~ 1 error generated.
The actual problem is that (void*)-1 is used as a magic value to denote (an unassigned?) key.
(void*)-1
Application::Application(int& argc, char** argv) :unicorn::Application( "fm.last.Scrobbler", argc, argv ) , m_raiseHotKeyId( (void*)-1 )
I'd guess that itself is an undefined bahavior.
The actual problem is that
(void*)-1
is used as a magic value to denote (an unassigned?) key.I'd guess that itself is an undefined bahavior.