Re: [PATCH 5/5] debug: BUILD_BUG_ON: error on non-const expressions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Boaz Harrosh
Date: Monday, September 1, 2008 - 8:00 am

Jan Beulich wrote:

Using only sizeof() produces tons of "expression has no effect" warning
all over the place.


What is broken with my BUILD_BUG_ON_ZERO(). I tried all tests and
it works fine. Do you have a test with unwanted results?
(Actually it's the original one I have not touched it).


I was not criticizing your approach, I was commenting on:
"{}" vs. do{}while(0) 


I've tested and nothing is produced, even without any optimization.
But I'm not an expert.


Boaz
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/5] net/niu: Fix none-const BUILD_BUG_ON usage, Boaz Harrosh, (Mon Sep 1, 6:11 am)
[PATCH 3/5] virtio: Fix none-const BUILD_BUG_ON usage, Boaz Harrosh, (Mon Sep 1, 6:13 am)
Re: [PATCH 5/5] debug: BUILD_BUG_ON: error on non-const ..., Boaz Harrosh, (Mon Sep 1, 8:00 am)