warning fixed and pedantic error flag added