1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

build: disable warnings (Ubuntu 16.04 + CUDA 8.0)

Examples:
- NPP_staging.cu:1606:105: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
- NCVHaarObjectDetection.hpp:95:37: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
This commit is contained in:
Alexander Alekhin
2016-12-07 12:44:31 +03:00
parent 7db13c7aab
commit 03beff06ff
2 changed files with 9 additions and 1 deletions
@@ -59,6 +59,11 @@
#ifndef _ncvhaarobjectdetection_hpp_
#define _ncvhaarobjectdetection_hpp_
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
#include <string>
#include "NCV.hpp"
@@ -458,5 +463,8 @@ NCV_EXPORTS NCVStatus ncvHaarStoreNVBIN_host(const std::string &filename,
NCVVector<HaarFeature64> &h_HaarFeatures);
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
#endif // _ncvhaarobjectdetection_hpp_