• Arnd Bergmann's avatar
    xtensa: shut up gcc-8 warnings · 32bb954d
    Arnd Bergmann authored
    Many uses of strncpy() on xtensa causes  a warning like
    
    arch/xtensa/include/asm/string.h:56:42: warning: array subscript is above array bounds [-Warray-bounds]
       : "0" (__dest), "1" (__src), "r" (__src+__n)
    
    This avoids the warning by turning the pointer arithmetic into an
    integer operation that does not get checked the same way.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    32bb954d
string.h 3.31 KB