Skip to content

Commit

Permalink
no more -Wformat warnings in P6opaque.c
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Oct 4, 2016
1 parent 56681b6 commit d864b82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/6model/reprs/P6opaque.c
Expand Up @@ -718,7 +718,7 @@ static void compose(MVMThreadContext *tc, MVMSTable *st, MVMObject *info_hash) {

/* Ensure we have a name. */
if (MVM_is_null(tc, name_obj))
MVM_exception_throw_adhoc(tc, "P6opaque: missing attribute name for attribute %d", i);
MVM_exception_throw_adhoc(tc, "P6opaque: missing attribute name for attribute %"PRId64, i);

if (REPR(name_obj)->ID == MVM_REPR_ID_MVMString) {
MVM_ASSIGN_REF(tc, &(st->header), name_map->names[i], (MVMString *)name_obj);
Expand Down Expand Up @@ -766,19 +766,19 @@ static void compose(MVMThreadContext *tc, MVMSTable *st, MVMObject *info_hash) {
case MVM_STORAGE_SPEC_BP_INT:
if (repr_data->unbox_int_slot >= 0)
MVM_exception_throw_adhoc(tc,
"Duplicate box_target for native int: attributes %d and %d", repr_data->unbox_int_slot, i);
"Duplicate box_target for native int: attributes %d and %"PRId64, repr_data->unbox_int_slot, i);
repr_data->unbox_int_slot = cur_slot;
break;
case MVM_STORAGE_SPEC_BP_NUM:
if (repr_data->unbox_num_slot >= 0)
MVM_exception_throw_adhoc(tc,
"Duplicate box_target for native num: attributes %d and %d", repr_data->unbox_num_slot, i);
"Duplicate box_target for native num: attributes %d and %"PRId64, repr_data->unbox_num_slot, i);
repr_data->unbox_num_slot = cur_slot;
break;
case MVM_STORAGE_SPEC_BP_STR:
if (repr_data->unbox_str_slot >= 0)
MVM_exception_throw_adhoc(tc,
"Duplicate box_target for native str: attributes %d and %d", repr_data->unbox_str_slot, i);
"Duplicate box_target for native str: attributes %d and %"PRId64, repr_data->unbox_str_slot, i);
repr_data->unbox_str_slot = cur_slot;
break;
default:
Expand Down Expand Up @@ -817,7 +817,7 @@ static void compose(MVMThreadContext *tc, MVMSTable *st, MVMObject *info_hash) {
if (MVM_repr_exists_key(tc, attr_info, str_pos_del)) {
if (repr_data->pos_del_slot != -1)
MVM_exception_throw_adhoc(tc,
"Duplicate positional delegate attributes: %d and "PRId64, repr_data->pos_del_slot, cur_slot);
"Duplicate positional delegate attributes: %d and %"PRId64"", repr_data->pos_del_slot, cur_slot);
if (unboxed_type == MVM_STORAGE_SPEC_BP_NONE)
repr_data->pos_del_slot = cur_slot;
else
Expand All @@ -827,7 +827,7 @@ static void compose(MVMThreadContext *tc, MVMSTable *st, MVMObject *info_hash) {
if (MVM_repr_exists_key(tc, attr_info, str_ass_del)) {
if (repr_data->ass_del_slot != -1)
MVM_exception_throw_adhoc(tc,
"Duplicate associative delegate attributes: %d and "PRId64, repr_data->pos_del_slot, cur_slot);
"Duplicate associative delegate attributes: %d and %"PRId64, repr_data->pos_del_slot, cur_slot);
if (unboxed_type == MVM_STORAGE_SPEC_BP_NONE)
repr_data->ass_del_slot = cur_slot;
else
Expand Down

0 comments on commit d864b82

Please sign in to comment.