[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: __attribute__((__unused__)) problem
From: |
Frank Heckenbach |
Subject: |
Re: __attribute__((__unused__)) problem |
Date: |
Thu, 11 Apr 2013 07:54:14 +0200 |
John Horigan wrote:
> Why not replace '/*CONSTCOND*/ 0' with a non-constant expression that is
> guaranteed to be false, like 'rand() < 0'?
Please don't! Adding extra runtime work to silence a compiler
warning is absurd.
I don't use that compiler, but "do ... while (0)" is a
well-established idiom in C macros, so there must be a common way to
deal with it, whether it's a pragma or some workaround.
Frank
- __attribute__((__unused__)) problem, victor khomenko, 2013/04/06
- Re: __attribute__((__unused__)) problem, Akim Demaille, 2013/04/08
- Re: __attribute__((__unused__)) problem, Akim Demaille, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- Re: __attribute__((__unused__)) problem, Akim Demaille, 2013/04/10
- Re: __attribute__((__unused__)) problem, John Horigan, 2013/04/10
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/10
- Re: __attribute__((__unused__)) problem,
Frank Heckenbach <=
- Re: __attribute__((__unused__)) problem, John Horigan, 2013/04/11
- Re: __attribute__((__unused__)) problem, Akim Demaille, 2013/04/11
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/12