Linux: -Wconstant-conversion in samples/vfio-mdev/mtty.c

Created on 19 Oct 2018  路  2Comments  路  Source: ClangBuiltLinux/linux

samples/vfio-mdev/mtty.c:592:39: warning: implicit conversion from 'int' to 'char' changes value from 162 to -94 [-Wconstant-conversion]
                *buf = UART_MSR_DSR | UART_MSR_DDSR | UART_MSR_DCD;
                     ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
1 warning generated.

Patch sent: https://lore.kernel.org/lkml/[email protected]/

-Wconstant-conversion [BUG] linux [FIXED][LINUX] 5.0

Most helpful comment

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings