]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg/IntrinsicLib: Fix the warning on memset
authorGary Lin <glin@suse.com>
Wed, 22 Nov 2017 04:43:56 +0000 (12:43 +0800)
committerLong Qin <qin.long@intel.com>
Fri, 24 Nov 2017 08:36:29 +0000 (16:36 +0800)
commit108ff4a04b051eea61fa5440bb1101b309ac8713
tree04f4c63582c357a4feb35c6fcf0df59666060c35
parente38451cd9a87f86d9c699281252d381e10dcc98e
CryptoPkg/IntrinsicLib: Fix the warning on memset

Gcc issued the warning when compiling CryptoPkg:

CryptoPkg/Library/Include/CrtLibSupport.h:135:17: warning: type of 'memset' does not match original declaration [-Wlto-type-mismatch]
 void           *memset     (void *, int, size_t);
                 ^
CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c:27:8: note: type mismatch in parameter 2
 void * memset (void *dest, char ch, size_t count)
        ^

This commit changes the type of ch from char to int to match the
declaration.

Cc: Qin Long <qin.long@intel.com>
Cc: Ting Ye <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Qin Long <qin.long@intel.com>
CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c