* src/ioblksize.h: Avoid syntax check with redundant idx.h inclusion.
* src/od.c (FMT_BYTES_ALLOCATED): Increase by two to avoid:
error: '%s' directive writing between 1 and 2 bytes into a region
of size between 1 and 4 [-Werror=format-overflow=]
(maint): Use %td to print idx_t rather than invalid %jt format.
/* Include this file _after_ system headers if possible. */
/* sys/stat.h and minmax.h will already have been included by system.h. */
-#include "idx.h"
#include "count-leading-zeros.h"
#include "stat-size.h"
enum
{
FMT_BYTES_ALLOCATED =
- (sizeof "%*.99" - 1
+ (sizeof "%*.99" + 1
+ MAX (sizeof "ld",
MAX (sizeof PRIdMAX,
MAX (sizeof PRIoMAX,
bytes_per_block = desired_width;
else
{
- error (0, 0, _("warning: invalid width %jt; using %d instead"),
+ error (0, 0, _("warning: invalid width %td; using %d instead"),
desired_width, l_c_m);
bytes_per_block = l_c_m;
}