首页 > 代码库 > mysql编译时报的一个警告warning: type-punning to incomplete type might break strict-aliasing rules,可能是bug

mysql编译时报的一个警告warning: type-punning to incomplete type might break strict-aliasing rules,可能是bug

cmake的时候报了一个警告:

/softdb/mysql-5.5.37/storage/innobase/handler/ha_innodb.cc:11870: warning: type-punning to incomplete type might break strict-aliasing rules
/softdb/mysql-5.5.37/storage/innobase/handler/ha_innodb.cc:11871: warning: type-punning to incomplete type might break strict-aliasing rules
/softdb/mysql-5.5.37/storage/innobase/handler/ha_innodb.cc:11872: warning: type-punning to incomplete type might break strict-aliasing rules
/softdb/mysql-5.5.37/storage/innobase/handler/ha_innodb.cc:11878: warning: type-punning to incomplete type might break strict-aliasing rules

 

查询了一下,maybe是个bug。http://bugs.mysql.com/bug.php?id=42733