glx: use a block to fix declarations after code warning