Are you using a compiler with --enable-checking? Release compilers don't generally complain about mismatched arguments. I'll have a look when I get time.