Fix compiler warnings

Fixed compiler warnings that happen when compiling using GCC v4.8.2 on Ubuntu 14.04.

* Removed unused variable
* Fixed unused return values from `asprintf`. (Using the existing style of https://github.com/fishman/ctags/blob/master/misc/badinput.c#L300)