compiler_hints.hpp 601 B

12345678910111213141516171819
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2018 Intel Corporation
  6. #ifndef OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP
  7. #define OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP
  8. namespace cv
  9. {
  10. namespace util
  11. {
  12. //! Utility template function to prevent "unused" warnings by various compilers.
  13. template<typename T> void suppress_unused_warning( const T& ) {}
  14. } // namespace util
  15. } // namespace cv
  16. #endif /* OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP */