[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] Remove BUG_const_mismatch, locally defined but not used.
From:       Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date:       2014-02-03 9:32:55
Message-ID: alpine.DEB.2.10.1402031031080.30508 () enwn ! fr ! nkvf ! pbz
[Download RAW message or body]

On Mon, 3 Feb 2014, Denys Vlasenko wrote:
>
> This check is useful. I would like to retain it. How about moving it
> to global scope?
>
> #define CATV_OPT_e (1<<0)
> #define CATV_OPT_t (1<<1)
> #define CATV_OPT_v (1<<2)
> struct BUG_const_mismatch {
>         char BUG_const_mismatch[
>                 CATV_OPT_e == VISIBLE_ENDLINE && CATV_OPT_t == VISIBLE_SHOW_TABS
>                 ? 1 : -1
>         ];
> };
>
> int catv_main(...)...

That'll work too.


Cheers,

-- 
Cristian
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic