Get back -Wsigned-one-bit-field and fix sources according to it

Signed-off-by: makise-homura <[email protected]>
This commit is contained in:
makise-homura
2020-08-18 23:57:48 +03:00
parent 0be6aa9957
commit e74f372330
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -75,7 +75,7 @@
/* A compile-time constant with the value 0. If `const_expr` is not a
* compile-time constant with a nonzero value, cause a compile-time error. */
#define STATIC_ASSERT_EXPR( const_expr ) \
( 0 && sizeof( struct { int STATIC_ASSERT : 1 - 2 * ! ( const_expr ); } ) )
( 0 && sizeof( struct { unsigned int STATIC_ASSERT : 1 - 2 * ! ( const_expr ); } ) )
/* Return the scalar value `value` (possibly promoted). This is a compile-time
* constant if `value` is. `condition` must be a compile-time constant.
* If `condition` is false, arrange to cause a compile-time error. */