[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] Compiler warnings
From: |
Ken Brown |
Subject: |
[bug-mailutils] Compiler warnings |
Date: |
Thu, 27 Apr 2017 13:50:13 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
I'm getting the following compiler warnings on Cygwin with gcc-5.4.0:
system.c:122:30: warning: unused variable ‘auth_data’ [-Wunused-variable]
const struct mu_auth_data *auth_data = key;
copyfile.c:166:16: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
if (fchmod ((int) trans[0], mode))
^
copyfile.c:196:17: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
if (fchown ((int) trans[0], uid, gid))
^
The attached patch silences the warnings. I'm not sure whether the
patch to copyfile.c is correct; it seems strange to be casting a pointer
to an integer which is then used as a file descriptor. But I admit that
I haven't studied the code.
Ken
0001-Avoid-compiler-warnings.patch
Description: Text document
- [bug-mailutils] Compiler warnings,
Ken Brown <=