I am using @AgnerFog VCL (https://github.com/vectorclass/version2) library to perform vectorized calculations. When I turn on “-Wconversion” compilation flag, I get a few warnings (actually errors) as follows –
<code> vectori128.h - error: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short
unsigned
int’} may change
value [-Werror=conversion]
6461 | sh1 = 1; sh2 = L - 1u; // shift counts
instrset.h - error: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘signed char’
may change
value [-Werror=conversion]
978 | u.a[k++] = p < 0 ? -1 : p + j; // store byte
permutation index
</code>
<code> vectori128.h - error: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short
unsigned
int’} may change
value [-Werror=conversion]
6461 | sh1 = 1; sh2 = L - 1u; // shift counts
instrset.h - error: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘signed char’
may change
value [-Werror=conversion]
978 | u.a[k++] = p < 0 ? -1 : p + j; // store byte
permutation index
</code>
vectori128.h - error: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short
unsigned
int’} may change
value [-Werror=conversion]
6461 | sh1 = 1; sh2 = L - 1u; // shift counts
instrset.h - error: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘signed char’
may change
value [-Werror=conversion]
978 | u.a[k++] = p < 0 ? -1 : p + j; // store byte
permutation index
Is there any way to suppress errors that arise from the external libraries/code that you are using? I would like to keep conversion warning turned on for the code that I write.
Thank you,
Yosh