OacrIgnoreCond.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //===--- OacrIgnoreCond.h - OACR directives ---------------------*- C++ -*-===//
  2. ///////////////////////////////////////////////////////////////////////////////
  3. // //
  4. // OacrIgnoreCond.h //
  5. // Copyright (C) Microsoft Corporation. All rights reserved. //
  6. // This file is distributed under the University of Illinois Open Source //
  7. // License. See LICENSE.TXT for details. //
  8. // //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #pragma once
  11. //
  12. // In free builds, configuration options relating to compiler switches,
  13. // most importantly languages, become constants, thereby removing
  14. // codepaths and reducing disk footprint.
  15. //
  16. // OACR has a number of warnings however for these degenerate conditionals,
  17. // which this file suppresses.
  18. // OACR error 6235
  19. #pragma prefast(disable: __WARNING_NONZEROLOGICALOR, "external project has dead branches for unsupported configuration combinations, by design")
  20. // OACR error 6236
  21. #pragma prefast(disable: __WARNING_LOGICALORNONZERO, "external project has dead branches for unsupported configuration combinations, by design")
  22. // OACR error 6236
  23. #pragma prefast(disable: __WARNING_ZEROLOGICALANDLOSINGSIDEEFFECTS, "external project has dead branches for unsupported configuration combinations, by design")
  24. // OACR error 6285
  25. #pragma prefast(disable: __WARNING_LOGICALOROFCONSTANTS, "external project has dead branches for unsupported configuration combinations, by design")
  26. // OACR error 6286
  27. #pragma prefast(disable: __WARNING_NONZEROLOGICALORLOSINGSIDEEFFECTS, "external project has dead branches for unsupported configuration combinations, by design")
  28. // OACR error 6287
  29. #pragma prefast(disable: __WARNING_REDUNDANTTEST, "external project has dead branches for unsupported configuration combinations, by design")
  30. // local variable is initialized but not referenced - every LangOpts use on stack triggers this
  31. #pragma warning(disable: 4189)