clang complains:
../../lib/util/genrand_util.c:99:9: error: variable 'num_chars' set but not used [-Werror,-Wunused-but-set-variable]
size_t num_chars = 0;
^
That is, the variable is initialised and incremented but the value is
never used.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
_PUBLIC_ bool check_password_quality(const char *pwd)
{
size_t ofs = 0;
- size_t num_chars = 0;
size_t num_digits = 0;
size_t num_upper = 0;
size_t num_lower = 0;
break;
}
ofs += len;
- num_chars += 1;
if (len == 1) {
const char *na = "~!@#$%^&*_-+=`|\\(){}[]:;\"'<>,.?/";