Someone asked a similar question in the past.
There are many interesting answers in this thread, so I suggest you read it. There is no official way to turn off cookie warnings, but there is a specific extension that allows you to avoid some.
Here is a link to one of these extensions: I do not need cookies
source
share