Skip to content

Commit 124a966

Browse files
Will it
1 parent 1806e53 commit 124a966

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

middleware/include/bitstream.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ void bitstream_init(bitstream_t *bitstream, uint8_t *data, size_t bytes);
3232
* @return Returns 0 if successful, -1 if there is insufficient space in the bitstream, and 1 if overflow occurs.
3333
*/
3434
#define STATIC_ASSERT(condition, message) \
35-
do { \
36-
typedef char static_assertion_##__LINE__[(condition) ? 1 : -1]; \
37-
} while(0)
35+
((void)sizeof(char[((condition) ? 1 : -1)]))
3836

3937
#define bitstream_add(bitstream, value, num_bits) \
4038
( \
@@ -49,7 +47,6 @@ void bitstream_init(bitstream_t *bitstream, uint8_t *data, size_t bytes);
4947
int8_t: bitstream_add_int, \
5048
int16_t: bitstream_add_int, \
5149
int32_t: bitstream_add_int, \
52-
default: bitstream_add_unsupported_type \
5350
)(bitstream, value, num_bits) \
5451
)
5552

0 commit comments

Comments
 (0)