A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cisco/openh264/commit/6746bc48f1ee9b3165200a8fad329acfdf01621b below:

Use void casts to silence warnings about memcpy to a class (#3800) · cisco/openh264@6746bc4 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+3

-13

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+3

-13

lines changed Original file line number Diff line number Diff line change

@@ -31,12 +31,3 @@ endif

31 31

ifneq ($(filter %clang++,$(CXX)),)

32 32

CXXFLAGS += -Wc++11-compat-reserved-user-defined-literal

33 33

endif

34 - 35 -

ifneq ($(filter %g++,$(CXX)),)

36 -

ifeq ($(filter %clang++,$(CXX)),)

37 -

GCCVER_GTEQ8 = $(shell echo $$(($$($(CXX) -dumpversion | awk -F "." '{print $$1}') >= 8)))

38 -

ifeq ($(GCCVER_GTEQ8), 1)

39 -

CXXFLAGS += -Wno-class-memaccess

40 -

endif

41 -

endif

42 -

endif

Original file line number Diff line number Diff line change

@@ -2329,7 +2329,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar

2329 2329

WelsUninitEncoderExt (&pCtx);

2330 2330

return iRet;

2331 2331

}

2332 -

memcpy (pCtx->pSvcParam, pCodingParam, sizeof (SWelsSvcCodingParam)); // confirmed_safe_unsafe_usage

2332 +

memcpy ((void*) pCtx->pSvcParam, pCodingParam, sizeof (SWelsSvcCodingParam)); // confirmed_safe_unsafe_usage

2333 2333 2334 2334

pCtx->pFuncList = (SWelsFuncPtrList*)pCtx->pMemAlign->WelsMallocz (sizeof (SWelsFuncPtrList), "SWelsFuncPtrList");

2335 2335

if (NULL == pCtx->pFuncList) {

@@ -4456,7 +4456,7 @@ int32_t WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConf

4456 4456

SWelsSvcCodingParam sConfig;

4457 4457

int32_t iNumRefFrame = 1;

4458 4458

int32_t iRet = 0;

4459 -

memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam));

4459 +

memcpy ((void*) &sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam));

4460 4460

sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference;

4461 4461

sConfig.iLTRRefNum = pLTRValue->iLTRRefNum;

4462 4462

int32_t uiGopSize = 1 << (sConfig.iTemporalLayerNum - 1);

Original file line number Diff line number Diff line change

@@ -1056,7 +1056,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) {

1056 1056

return cmInitParaError;

1057 1057

}

1058 1058

SWelsSvcCodingParam sConfig;

1059 -

memcpy (&sConfig, m_pEncContext->pSvcParam, sizeof (SWelsSvcCodingParam));

1059 +

memcpy ((void*) &sConfig, m_pEncContext->pSvcParam, sizeof (SWelsSvcCodingParam));

1060 1060

sConfig.eSpsPpsIdStrategy = eNewStrategy;

1061 1061

WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption eSpsPpsIdStrategy = %d ",

1062 1062

sConfig.eSpsPpsIdStrategy);

Original file line number Diff line number Diff line change

@@ -41,7 +41,6 @@ cpu_family = host_machine.cpu_family()

41 41 42 42

supported_arguments = cpp.get_supported_arguments([

43 43

'-Wno-non-virtual-dtor',

44 -

'-Wno-class-memaccess',

45 44

'-Werror',

46 45

'-Wunused-but-set-variable',

47 46

'-Wno-strict-aliasing'])

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4