Is there any way to hide warnings when compiling from the CLI?

I’m using quite a few third-party libraries in my project, and they generate a lot of warnings that are just noise. This makes it hard to find the actual errors. I end up having to search for “error” in my terminal every time.

Is there a way to hide warnings?