commit | fbabe700637e561fc8e403a36d5a9d5d860f9511 | [log] [tgz] |
---|---|---|
author | Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no> | Fri May 07 06:45:44 2021 +0200 |
committer | Kumar Gala <kumar.gala@gmail.com> | Fri May 07 09:39:08 2021 -0500 |
tree | 378139a7eb389b9a8d0bcfde8d6edc247ca66f4a | |
parent | 56d44705a01bf42d123f3dd2e6804e3b9abc899f [diff] |
lib: os: cbprintf: Fixes for c++ and coverity Fixes for C++ includes: - avoid calling static inline template function in static assert on certain platforms which consider it non const expression - Add 0 to variable before calling C++ argument storing function to promote a variable. Fix for coverity: - avoid using sizeof(n + 0) by using local variable (gcc extension) Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>