als: Restructure DEBUG ifdefs to avoid unused function parameter warnings