Warnings now appear only when building with debug flag