[libsmi] [PATCH] Fix build failure with gcc-15