summaryrefslogtreecommitdiff
path: root/src/zap
diff options
context:
space:
mode:
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>2019-03-04 01:55:22 -0500
committerJan Kotas <jkotas@microsoft.com>2019-03-03 22:55:22 -0800
commit9d3f264b9ef8b4715017ec615dcb6f9d57e607cc (patch)
tree44cdbdfc045ca93779e3d6faabe30ab2e4b56dd1 /src/zap
parent7da0883d9ceba31bccf36cc8cbbbf2fe77a4f3e0 (diff)
downloadcoreclr-9d3f264b9ef8b4715017ec615dcb6f9d57e607cc.tar.gz
coreclr-9d3f264b9ef8b4715017ec615dcb6f9d57e607cc.tar.bz2
coreclr-9d3f264b9ef8b4715017ec615dcb6f9d57e607cc.zip
Cleanup more GCC warnings (#22872)
* Add parenthesis src/vm/sha1.cpp: In function ‘void SHA1_block(SHA1_CTX*)’: src/vm/sha1.cpp:93:29: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] #define ROUND3(B, C, D) ((C & (B | D) | (B & D)) + sha1_round3) ^ src/vm/sha1.cpp:139:32: note: in expansion of macro ‘ROUND3’ e += ROTATE32L(a, 5) + ROUND3(b, c, d) + msg80[i]; * Move declaration into same file as one was defined Extern the other one was static * Remove hr=hr undefined assignment * Fix mutli-line comment warning * Convert multi-character literal * Remove null check for stack local variables rc/vm/invokeutil.cpp: In static member function ‘static void InvokeUtil::SetValidField(CorElementType, TypeHandle, FieldDesc*, OBJECTREF*, OBJECTREF*, TypeHandle, CLR_BOOL*)’: src/vm/invokeutil.cpp:978:29: warning: the address of ‘Throwable’ will never be NULL [-Waddress] EX_CATCH_THROWABLE(&Throwable); ^ src/inc/ex.h:1087:21: note: in definition of macro ‘EX_CATCH_THROWABLE’ if (NULL != ppThrowable) ^
Diffstat (limited to 'src/zap')
-rw-r--r--src/zap/zapimage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index d5d48ae2d6..7a849fbfcc 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -1025,8 +1025,8 @@ HANDLE ZapImage::GenerateFile(LPCWSTR wszOutputFileName, CORCOMPILE_NGEN_SIGNATU
{
// Write the debug directory entry for the NGEN PDB
RSDS rsds = {0};
-
- rsds.magic = 'SDSR';
+
+ rsds.magic = VAL32(0x53445352); // "SDSR";
rsds.age = 1;
// our PDB signature will be the same as our NGEN signature.
// However we want the printed version of the GUID to be be the same as the