Skip to content

Comments

Fix build with pre-C23 compilers other than GCC, Clang, or MSVC#315

Open
thiagomacieira wants to merge 1 commit intointel:mainfrom
thiagomacieira:Fix_build_with_pre_C23_compilers_other_than_GCC_Clang_or_MSVC
Open

Fix build with pre-C23 compilers other than GCC, Clang, or MSVC#315
thiagomacieira wants to merge 1 commit intointel:mainfrom
thiagomacieira:Fix_build_with_pre_C23_compilers_other_than_GCC_Clang_or_MSVC

Conversation

@thiagomacieira
Copy link
Member

We forgot to define unreachable() for them.

Found when trying to compile Qt for INTEGRITY:

"/home/qt/work/qt/qtbase/src/corelib/../3rdparty/tinycbor/src/cborparser.c", line 246: error #20:
           identifier "unreachable" is undefined
               cbor_assert(false);  /* these conditions can't be reached */
               ^

We forgot to define `unreachable()` for them.

Found when trying to compile Qt for INTEGRITY:
```
"/home/qt/work/qt/qtbase/src/corelib/../3rdparty/tinycbor/src/cborparser.c", line 246: error intel#20:
           identifier "unreachable" is undefined
               cbor_assert(false);  /* these conditions can't be reached */
               ^
```

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant