radvd-project / radvd

radvd | Official repository: https://github.com/radvd-project/radvd
https://radvd.litech.org/
Other
203 stars 106 forks source link

configure.ac: Fix -Wint-conversion warnings #205

Closed thesamesam closed 1 year ago

thesamesam commented 1 year ago

These become fatal with Clang 15 and may lead to incorrect configure test results.

-ignoreme: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'uint16_t[8]' (aka 'unsigned short[8]') [-Wint-conversion]
+ignoreme: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'uint16_t[8]' (aka 'unsigned short[8]') [-Wint-conversion]
 int u =  in6_u.s6_addr16;
     ^    ~~~~~~~~~~~~~~~

Signed-off-by: Sam James sam@gentoo.org

thesamesam commented 1 year ago

Please give this a double check to make sure it preserves the original intent.