Skip to content
Commit e7b28e1e authored by Stephanos Ioannidis's avatar Stephanos Ioannidis
Browse files

cmake: clang: Disable deprecated non-prototype warning



Clang 15 added a new warning type `-Wdeprecated-non-prototype` that
warns about the functions without prototypes, which have been
deprecated since the C89 and will not work in the upcoming C2x.

This commit disables the warning because Zephyr deliberately makes use
of the functions without prototypes to allow the use of a "generic"
function pointer (notoriously in the cbprintf implementation) and
Zephyr will not move to the C2x in the foreseeable future.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
(cherry picked from commit 0a63ca61)
parent 0ca7bdf9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment