[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 02/23] audio: fix bit-rotted code

From: Gerd Hoffmann
Subject: Re: [PATCH 02/23] audio: fix bit-rotted code
Date: Thu, 14 Jan 2021 15:32:03 +0100


>  #ifdef DEBUG
> -    alsa_dump_info(req, obt, obtfmt, pdo);
> +    alsa_dump_info(req, obt, obtfmt, apdo);
>  #endif

"if (DEBUG) { .... }" is a nice way to have this checked by the
compiler.  With "#define DEBUG 0" the compiler will optimize away
the dead code, so it isn't much different to #ifdef'ed code.

take care,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]