Browse Source

Fix spurious warning

Samuel Thibault 10 years ago
parent
commit
b14aff819b
2 changed files with 4 additions and 2 deletions
  1. 2 0
      socl/src/CL/cl_gl.h
  2. 2 2
      socl/src/Makefile.am

+ 2 - 0
socl/src/CL/cl_gl.h

@@ -104,7 +104,9 @@ clEnqueueReleaseGLObjects(cl_command_queue      /* command_queue */,
 
 
 #ifdef CL_USE_DEPRECATED_OPENCL_1_1_APIS
+#ifndef BUILDING_SOCL
 #warning CL_USE_DEPRECATED_OPENCL_1_1_APIS is defined. These APIs are unsupported and untested in OpenCL 1.2!
+#endif
     extern CL_API_ENTRY cl_mem CL_API_CALL
     clCreateFromGLTexture2D(cl_context      /* context */,
                             cl_mem_flags    /* flags */,

+ 2 - 2
socl/src/Makefile.am

@@ -1,6 +1,6 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
-# Copyright (C) 2009-2012  Université de Bordeaux
+# Copyright (C) 2009-2012, 2014  Université de Bordeaux
 # Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -16,7 +16,7 @@
 
 AM_CFLAGS = $(GLOBAL_AM_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(HWLOC_CFLAGS)
 libsocl_@STARPU_EFFECTIVE_VERSION@_la_LIBADD = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la
-AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/socl/src
+AM_CPPFLAGS = -DBUILDING_SOCL -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/socl/src
 AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) -no-undefined
 
 SUBDIRS =