diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2013-01-18 15:45:58 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-10 14:52:32 +0800 |
commit | aecc39f7a9e5607841b6166b3c91027b0aabef3e (patch) | |
tree | d4adec3427c7e4821c08045669af0367c83dde7c | |
parent | 037819f7c4a6232270fc1d970f7aafa34c182e39 (diff) |
add anonymous namespace to avoid name collision with the next patch
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r-- | utests/compiler_saturate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utests/compiler_saturate.cpp b/utests/compiler_saturate.cpp index a92dffae..db07f4fe 100644 --- a/utests/compiler_saturate.cpp +++ b/utests/compiler_saturate.cpp @@ -1,5 +1,7 @@ #include "utest_helper.hpp" +namespace { + constexpr int n = 16; // declaration only, we should create each template specification for each type. @@ -93,6 +95,8 @@ void test(const char *kernel_name) OCL_UNMAP_BUFFER(0); } +} + static void compiler_saturate(void) { test<int8_t>("test_char"); |