Fix static_assert() parameters

In C11, static_assert() expects a message.
This commit is contained in:
Romain Vimont 2020-03-27 14:01:56 +01:00
parent dc7c677728
commit e050cfdcd6

View file

@ -304,7 +304,7 @@ parse_lock_video_orientation(const char *s, int8_t *lock_video_orientation) {
static bool static bool
parse_window_position(const char *s, int16_t *position) { parse_window_position(const char *s, int16_t *position) {
// special value for "auto" // special value for "auto"
static_assert(WINDOW_POSITION_UNDEFINED == -0x8000); static_assert(WINDOW_POSITION_UNDEFINED == -0x8000, "unexpected value");
if (!strcmp(s, "auto")) { if (!strcmp(s, "auto")) {
*position = WINDOW_POSITION_UNDEFINED; *position = WINDOW_POSITION_UNDEFINED;