Modifying code in order to avoid errors and warnings when compiling on g++ -Wall