intel / intel/confidential-computing.tee.dcap.qvl

Build warning C4244 on Windows

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
15
Forks
12
PR merge metrics
No merged PRs in 30d

Description

There is a build warning for this line https://github.com/intel/SGX-TDX-DCAP-QuoteVerificationLibrary/blob/16b7291a7a86e486fdfcf1dfb4be885c0cc00b4e/Src/AttestationLibrary/src/Verifiers/QuoteVerifier.cpp#L482C3-L487C16

The toupper return type is *int* when transform expect a char.

The warning message as below.
message : see reference to function template instantiation '_InputIterator std::find_if,getTdxModuleTcblevel::>(_InputIterator,_InputIterator,_Predicate)' being compiled
1> with
1> [
1> _InputIterator=std::__wrap_iter,
1> _Predicate=getTdxModuleTcblevel::
1> ]
1>C:\Program Files (x86)\Intel\IntelSGXSDK\include\libc++\algorithm(1968,25): warning C4244: '=': conversion from 'int' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=char
1> ]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.