Clean unused variables / Fix QObject macro
Clean unused variables / Fix QObject macro

this simple patch cleans more than 500 warnings on my build
and it should be really safe to apply since it basically remove
unused variables.

Signed-off-by: Tomaz Canabrava <ccb3839ae5be3c29427fdefd1acdf43769f66bb0@intel.com>

ethz-asl/qgc_asl,kd0aij/qgroundcontrol,ethz-asl/qgc_asl,ethz-asl/qgc_asl,mihadyuk/qgroundcontrol,kd0aij/qgroundcontrol,CornerOfSkyline/qgroundcontrol,kd0aij/qgroundcontrol,Hunter522/qgroundcontrol,kd0aij/qgroundcontrol,RedoXyde/PX4_qGCS,ethz-asl/qgc_asl,mihadyuk/qgroundcontrol,catch-twenty-two/qgroundcontrol,RedoXyde/PX4_qGCS,CornerOfSkyline/qgroundcontrol,CornerOfSkyline/qgroundcontrol,Hunter522/qgroundcontrol,RedoXyde/PX4_qGCS,Hunter522/qgroundcontrol,mihadyuk/qgroundcontrol,mihadyuk/qgroundcontrol,catch-twenty-two/qgroundcontrol,kd0aij/qgroundcontrol,mihadyuk/qgroundcontrol,mihadyuk/qgroundcontrol,Hunter522/qgroundcontrol,CornerOfSkyline/qgroundcontrol,catch-twenty-two/qgroundcontrol,kd0aij/qgroundcontrol,Hunter522/qgroundcontrol,ethz-asl/qgc_asl,CornerOfSkyline/qgroundcontrol,RedoXyde/PX4_qGCS,Hunter522/qgroundcontrol,RedoXyde/PX4_qGCS,CornerOfSkyline/qgroundcontrol,catch-twenty-two/qgroundcontrol,catch-twenty-two/qgroundcontrol,catch-twenty-two/qgroundcontrol,RedoXyde/PX4_qGCS