warning gcc flags check added in debug mode