jamesbowman / i2cdriver

I2CDriver open source tools
https://i2cdriver.com/
BSD 3-Clause "New" or "Revised" License
187 stars 57 forks source link

clang/clang++ in -c++17 mode generates cast error #39

Closed JessicaMulein closed 4 years ago

JessicaMulein commented 4 years ago

src/i2cdriver/c/common/i2cdriver.c:326:28: note: insert an explicit cast to silence this issue uint8_t start[2] = {'s', (dev << 1) | op}; ^~~~~~~ static_cast( )

JessicaMulein commented 4 years ago

You are a speedy demon.