title: Visual Studio vs GCC, concerning "'__cdecl' attribute directive ignored [-Wattributes]"
body: <p>I need to suppress a GCC (or what I believe is GCC) compiler warning in Visual Studio. Usually these Visual Studio compiler warnings come with a warning code, but this one is just null. </p>
  
  <p>The warning is <code>'__cdecl' attribute directive ignored [-Wattributes]</code>. I believe I need to suppress all <code>-Wattributes</code> warnings for my .h file, but I am not sure how to do that.</p>
  
  <p>The block that is giving me the troubles is inside <em>LoggerHelper.h</em>:</p>
  
  <pre><code>#ifdef _MSC_VER
      using LoggerFuncPtr = void(__cdecl *)(wchar_t*);
  #else
      using LoggerFuncPtr = void(__attribute__((__cdecl)) *)(wchar_t*); 
  #endif
  </code></pre>