- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[patch] clang compiler fixes/cleanups #3435
Comments
|
|
|
|
|
|
mc-cleanup-clang-warnings-01.patch looks not quite correct, because fcntl.h is included unconditionally everywhere it included in mc source tree. The another fix should be found.
mc-cleanup-clang-warnings-02.patch: if code is unused it should be removed not just commented out. Please don't use the //-style comments.
mc-cleanup-clang-warnings-06.patch and mc-cleanup-clang-warnings-07.patch will not be applied because we don't want support the ancient Samba code (see #1). |
mc-cleanup-clang-warnings-01.patch
currently lib/event/event.c is called first (compile session) and without proper fcntl.h definition.
mc-cleanup-clang-warnings-02.patch
mc-cleanup-clang-warnings-06.patch |
v2 |
Replying to and:
Ok. Probably, include fcntl.h in global.h and remove all other includes of fcntl.h? |
Include <fcntl.h> via "lib/global.h". |
Important
This issue was migrated from Trac:
and
fix clang 3.6 compiler warnings
patch 01: -Wundef
patch 02: -Wunused-function
patch 03: -Wnon-literal-null-conversion
patch 04: -Wmissing-field-initializers
patch 05: -Wabsolute-value
patch 06: -Wtautological-pointer-compare
patch 07: -Wformat
Signed-off-by: Andreas Mohr <and@gmx.li>
Note
Original attachments:
and
onApr 3, 2015 at 1:31 UTC
and
onApr 3, 2015 at 1:31 UTC
and
onApr 3, 2015 at 1:31 UTC
and
onApr 3, 2015 at 1:31 UTC
and
onApr 3, 2015 at 1:32 UTC
and
onApr 3, 2015 at 1:32 UTC
and
onApr 5, 2015 at 12:03 UTC
andrew_b
(@aborodin) onApr 5, 2015 at 13:18 UTC
The text was updated successfully, but these errors were encountered: