link_set: fix GCC 6 warnings