Fix warnings in gl_generator

Fix the warnings in gl_generator.