[PATCH v5 8/25] bug.h: Make BUILD_BUG_ON generate compile-time error

2012-09-25 Thread Daniel Santos
Negative sized arrays wont create a compile-time error in some cases starting with gcc 4.4 (e.g., inlined functions), but gcc 4.3 introduced the error function attribute that will. This patch modifies BUILD_BUG_ON to behave like BUILD_BUG already does, using the error function attribute so that

[PATCH v5 8/25] bug.h: Make BUILD_BUG_ON generate compile-time error

2012-09-25 Thread Daniel Santos
Negative sized arrays wont create a compile-time error in some cases starting with gcc 4.4 (e.g., inlined functions), but gcc 4.3 introduced the error function attribute that will. This patch modifies BUILD_BUG_ON to behave like BUILD_BUG already does, using the error function attribute so that