tbstack: fix pedantic warning