Added new macro CONST_CAST to avoid compiler warnings.
committer: mfx <mfx> 974103100 +0000
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ void *upx_main(
|
||||
*(unsigned short const *)(0x7c + (char const *)my_ehdr);
|
||||
struct Extent xi = { // describe compressed shell script
|
||||
((Elf32_Phdr const *)(1 + my_ehdr))->p_filesz - lsize,
|
||||
(lsize + (char *)my_ehdr) // warning: 'const' cast away
|
||||
lsize + CONST_CAST(char *, my_ehdr)
|
||||
};
|
||||
struct Extent xo = { ((struct p_info *)xi.buf)[-1].p_filesize, uncbuf };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user