c++: convert implicit conversion to explicit ones in header files

c++ does not allow implicit conversions and setting -fpermissive just
causes a huge load of warnings to appear and hides real errors.

This commit converts those implicit conversions to c-style explicit
conversions.

Signed-off-by: Alexander Polleti <metapsycholo@gmail.com>
This commit is contained in:
Alexander Polleti 2018-11-14 14:43:10 +01:00 committed by Anas Nashif
commit fb4cb3a878
4 changed files with 13 additions and 8 deletions

View file

@ -253,7 +253,7 @@ extern "C" {
#define _LOG(_level, ...) \
__LOG(_level, \
LOG_CURRENT_MODULE_ID(), \
(u16_t)LOG_CURRENT_MODULE_ID(), \
LOG_CURRENT_DYNAMIC_DATA_ADDR(), \
__VA_ARGS__)