Bernhard Voelker 4bbc9e7a4a maint: avoid warnings from GCC 6.2.1
buildcmd.c: In function 'bc_push_arg':
buildcmd.c:362:11: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
           if (ctl->replace_pat
           ^~
buildcmd.c:366:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             bc_do_exec (ctl, state);
             ^~~~~~~~~~
pred.c: In function 'print_optlist':
pred.c:1328:46: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'long unsigned int' [-Werror=format=]
           fprintf (fp, "[real success rate %ld/%ld", p->perf.successes, p->perf.visits);
                                              ^
pred.c:1328:50: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'long unsigned int' [-Werror=format=]
           fprintf (fp, "[real success rate %ld/%ld", p->perf.successes, p->perf.visits);
                                                  ^
print.c: In function 'scan_for_digit_differences':
print.c:449:46: error: logical 'or' of equal expressions [-Werror=logical-op]
           if (!isdigit ((unsigned char)q[i]) || !isdigit ((unsigned char)q[i]))
                                              ^~
In file included from ../gl/lib/gettext.h:25:0,
                 from locate.c:86:
locate.c: In function 'dolocate':
locate.c:1873:28: error: format '%d' expects argument of type 'int', but argument 5 has type 'unsigned int' [-Werror=format=]
                          _("warning: database %s is more than %d %s old (actual age is %.1f %s)"),
                            ^
locate.c:1873:26: note: in expansion of macro '_'
                          _("warning: database %s is more than %d %s old (actual age is %.1f %s)"),
                          ^
locate.c:1927:18: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'long unsigned int' [-Werror=format=]
       printf ("%ld\n", found);
                  ^
cc1: all warnings being treated as errors

* find/pred.c (print_optlist): Use %lu for unsigned long int.
* find/print.c (scan_for_digit_differences): Check p[i] too rather than
q[i] two times.
* lib/buildcmd.c (bc_push_arg): Fix indentation.
* locate/locate.c (dolocate): Use %u format for unsigned int.
Use %lu format for unsigned long int.
2017-02-06 22:25:01 +01:00
..
2016-02-16 23:27:44 +01:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-11-02 23:32:04 +01:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00
2016-01-03 23:27:34 +00:00