Skip to content

Commit

Permalink
Get rid of: the address of oclContext will never be NULL
Browse files Browse the repository at this point in the history
Change-Id: Icb5a2fb897174b8c4efeefe29c91e6a5bf5dba8c
  • Loading branch information
FilipFudala authored and sys_zuul committed Aug 9, 2019
1 parent 38cc5b4 commit 8d603d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions IGC/AdaptorOCL/dllInterfaceCompute.cpp
Expand Up @@ -840,7 +840,17 @@ bool TranslateBuild(
USC::SShaderStageBTLayout zeroLayout = USC::g_cZeroShaderStageBTLayout;
IGC::COCLBTILayout oclLayout(&zeroLayout);
OpenCLProgramContext oclContext(oclLayout, IGCPlatform, pInputArgs, *driverInfo, llvmContext);

#ifdef __GNUC__
// Get rid of "the address of 'oclContext' will never be NULL" warning
#pragma GCC diagnostic push
#pragma GCC ignored "-Waddress"
#endif // __GNUC__
COMPILER_TIME_INIT(&oclContext, m_compilerTimeStats);
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__

COMPILER_TIME_START(&oclContext, TIME_TOTAL);
oclContext.m_ProfilingTimerResolution = profilingTimerResolution;

Expand Down

0 comments on commit 8d603d8

Please sign in to comment.