macos: initialize macho struct with memset which removes a clang warning on macOS.
This commit is contained in:
parent
fc05da3c0b
commit
49e2d06921
1 changed files with 3 additions and 1 deletions
|
@ -784,7 +784,9 @@ ST_FUNC int macho_output_file(TCCState *s1, const char *filename)
|
||||||
int fd, mode, file_type;
|
int fd, mode, file_type;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int i, ret = -1;
|
int i, ret = -1;
|
||||||
struct macho mo = {0};
|
struct macho mo;
|
||||||
|
|
||||||
|
(void)memset(&mo, 0, sizeof(mo));
|
||||||
|
|
||||||
file_type = s1->output_type;
|
file_type = s1->output_type;
|
||||||
if (file_type == TCC_OUTPUT_OBJ)
|
if (file_type == TCC_OUTPUT_OBJ)
|
||||||
|
|
Loading…
Add table
Reference in a new issue