No. Hacking the code was just an attempt to get it to compile - if you've found how to suppress the "treat warnings as errors" flag then you should revert the code changes (int throwaway =) and go back to the real code base, there's no reason for changes any more.
After that, we're into what you mean by "doesn't work properly", you haven't given a lot to go on here...