Fixed warnings due no return value of non-void functions wxQT