Usually harmless, but some of them we can actually kill
variables.
Signed-off-by: Jens Axboe <axboe@fb.com>
fmd = calloc(1, sizeof(*fmd));
if (!fmd) {
fmd = calloc(1, sizeof(*fmd));
if (!fmd) {
- int fio_unused ret;
- ret = generic_close_file(td, f);
+ int fio_unused __ret;
+ __ret = generic_close_file(td, f);
- int fio_unused ret;
- ret = generic_close_file(td, f);
+ int fio_unused __ret;
+ __ret = generic_close_file(td, f);
}
td->ts.nr_block_infos = len;
}
td->ts.nr_block_infos = len;
- for (int i = 0; i < len; i++)
+ for (i = 0; i < len; i++)
td->ts.block_infos[i] =
BLOCK_INFO(0, BLOCK_STATE_UNINIT);
} else
td->ts.block_infos[i] =
BLOCK_INFO(0, BLOCK_STATE_UNINIT);
} else
if (len) {
struct json_object *block, *percentile_object, *states;
if (len) {
struct json_object *block, *percentile_object, *states;
block = json_create_object();
json_object_add_value_object(root, "block", block);
block = json_create_object();
json_object_add_value_object(root, "block", block);
-static void check_merges(struct btrace_pid *p, struct flist_head *pid_list)
+static void check_merges(struct btrace_pid *p, struct flist_head *pidlist)
{
struct flist_head *e, *tmp;
if (p->ignore)
return;
{
struct flist_head *e, *tmp;
if (p->ignore)
return;
- flist_for_each_safe(e, tmp, pid_list) {
+ flist_for_each_safe(e, tmp, pidlist) {
struct btrace_pid *pidb;
pidb = flist_entry(e, struct btrace_pid, pid_list);
struct btrace_pid *pidb;
pidb = flist_entry(e, struct btrace_pid, pid_list);