Skip to content

gcc8.2 unsigned int to unsigned char conversion warning #888

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
furkanusta opened this issue Feb 21, 2019 · 0 comments
Closed

gcc8.2 unsigned int to unsigned char conversion warning #888

furkanusta opened this issue Feb 21, 2019 · 0 comments

Comments

@furkanusta
Copy link

gcc 8.2 & cmake 3.12

Compiler output:

In file included from ../src/lib_json/../../include/json/writer.h:10,
from ../src/lib_json/json_writer.cpp:8:
../src/lib_json/../../include/json/value.h: In member function ‘void Json::Value::setType(Json::ValueType)’:
../src/lib_json/../../include/json/value.h:615:51: warning: conversion from ‘unsigned int’ to ‘unsigned char’ may change value [-Wconversion]
void setType(ValueType v) { bits_.value_type_ = v; }

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants