build: Disable `unneeded-internal-declaration` warning

Change-Id: I48c99d7a1c224faebc63339d40f700a9a675d2da
Refs: #1588