Re #10498 Reducing scope of variable sig
Re #10498 fixing reorder warnings
Re #10498 Fixing comoparison signed unsigned warning