watch: fix bad compiler flag

Closes #32880.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>