[build] fix wrong warning