Skip to content

Commit

Permalink
remove build warnings on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed May 3, 2015
1 parent a5cd701 commit d76aa28
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions EasyCL.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ class EasyCL_EXPORT EasyCL {
CLKernel *getKernel( std::string name ); // throw exception if name doesnt exist
bool kernelExists( std::string name );
private:
// remove the warnings about dll-interface for kernelByName, which we
// can safely ignore, since kernelByName is private
#ifdef _WIN32
#pragma warning( disable: 4251 )
#endif
std::map< std::string, CLKernel * >kernelByName;
#ifdef _WIN32
#pragma warning( default: 4251 )
#endif

static std::string getFileContents( std::string filename );
long getDeviceInfoInt( cl_device_info name );
Expand Down

0 comments on commit d76aa28

Please sign in to comment.