gcc warning fix: variable init order