mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-27 06:10:06 +08:00
macos: initialize macho struct with memset which removes a clang warning on macOS.
This commit is contained in:
parent
fc05da3c0b
commit
49e2d06921
@ -784,7 +784,9 @@ ST_FUNC int macho_output_file(TCCState *s1, const char *filename)
|
||||
int fd, mode, file_type;
|
||||
FILE *fp;
|
||||
int i, ret = -1;
|
||||
struct macho mo = {0};
|
||||
struct macho mo;
|
||||
|
||||
(void)memset(&mo, 0, sizeof(mo));
|
||||
|
||||
file_type = s1->output_type;
|
||||
if (file_type == TCC_OUTPUT_OBJ)
|
||||
|
Loading…
Reference in New Issue
Block a user