I'll fix this, thanks for noticing. I wonder why didn't g++ warn about it, normally it gives these warnings too. Unfortunately I have no idea how to specify the compilation flags with cmake...

BTW, it would be nice to get rid of many other warnings currently given by g++...