Silencing OpenGL warnings on macOS Mojave : <p>My code is full of warnings like </p>

<blockquote>
  <p>'glTranslatef' is deprecated: first deprecated in macOS 10.14 - OpenGL
  API deprecated. (Define GL_SILENCE_DEPRECATION to silence these
  warnings)</p>
</blockquote>

<p>I did <code>#define GL_SILENCE_DEPRECATION</code> but that didn't fix the issue. 
I use <code>freeglut</code> that was installed by using <code>brew install freeglut</code></p>

<p>Can I silence it somehow?</p>
