You could just use grep -v on the output.
Depending on the warning you wish to disable, you can sometimes correct in code. E.g.:
int main()
{
int i;
}
Generates: foo.cc:4: warning: unused variable 'i'
Whereas this does not:
#define MARKUSED(X) ((void)(&(X)))
int main()
{
int i;
MARKUSED(i);
}