[PATCH] warnings cleanup: comparison of static array to null pointer
[Date Prev][Date Next] [Thread Prev][Thread Next][PATCH] warnings cleanup: comparison of static array to null pointer
- From: Patrick McLean <chutzpah [at] gentoo.org>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: [PATCH] warnings cleanup: comparison of static array to null pointer
- Date: Wed, 11 Mar 2015 10:59:19 -0700
There are several places where a static length array in a struct is compared to a null pointer. These comparisons will always be false, since an array in a struct is not actually a pointer, so they can be removed. These were found with clang.
Attachment:
0011-cleanup-warnings-compare-array-to-null.patch
Description: Text Data
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- [PATCH] warnings cleanup: comparison of static array to null pointer, Patrick McLean
- Prev by Date: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Next by Date: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Previous by thread: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Next by thread: Re: [PATCH] warnings cleanup: comparison of static array to null pointer