MADS: Fix warnings identified by gcc