Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created October 27, 2018 21:06
Show Gist options
  • Save MasterDuke17/3290040bd4383ac41507a80da7f50864 to your computer and use it in GitHub Desktop.
Save MasterDuke17/3290040bd4383ac41507a80da7f50864 to your computer and use it in GitHub Desktop.
src/spesh/graph.c: In function ‘MVM_spesh_graph_describe’:
src/spesh/graph.c:1404:68: warning: passing argument 3 of ‘MVM_profile_heap_add_collectable_rel_const_cstr’ from incompatible pointer type [-Wincompatible-pointer-types]
MVM_profile_heap_add_collectable_rel_const_cstr(tc, snapshot, g->sf, "Static frame");
~^~~~
In file included from src/moar.h:212,
from src/spesh/graph.c:1:
src/profiler/heapsnapshot.h:210:47: note: expected ‘MVMCollectable *’ {aka ‘struct MVMCollectable *’} but argument is of type ‘MVMStaticFrame *’ {aka ‘struct MVMStaticFrame *’}
MVMHeapSnapshotState *ss, MVMCollectable *collectable, char *desc);
~~~~~~~~~~~~~~~~^~~~~~~~~~~
src/spesh/graph.c:1414:94: warning: passing argument 3 of ‘MVM_profile_heap_add_collectable_rel_const_cstr’ from incompatible pointer type [-Wincompatible-pointer-types]
MVM_profile_heap_add_collectable_rel_const_cstr(tc, snapshot, (g->facts[i][j].type), "Known Type");
~~~~~~~~~~~~~~~^~~~~~
In file included from src/moar.h:212,
from src/spesh/graph.c:1:
src/profiler/heapsnapshot.h:210:47: note: expected ‘MVMCollectable *’ {aka ‘struct MVMCollectable *’} but argument is of type ‘MVMObject *’ {aka ‘struct MVMObject *’}
MVMHeapSnapshotState *ss, MVMCollectable *collectable, char *desc);
~~~~~~~~~~~~~~~~^~~~~~~~~~~
src/spesh/graph.c:1416:94: warning: passing argument 3 of ‘MVM_profile_heap_add_collectable_rel_const_cstr’ from incompatible pointer type [-Wincompatible-pointer-types]
MVM_profile_heap_add_collectable_rel_const_cstr(tc, snapshot, (g->facts[i][j].decont_type), "Known Decont Type");
~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from src/moar.h:212,
from src/spesh/graph.c:1:
src/profiler/heapsnapshot.h:210:47: note: expected ‘MVMCollectable *’ {aka ‘struct MVMCollectable *’} but argument is of type ‘MVMObject *’ {aka ‘struct MVMObject *’}
MVMHeapSnapshotState *ss, MVMCollectable *collectable, char *desc);
~~~~~~~~~~~~~~~~^~~~~~~~~~~
src/spesh/graph.c:1419:104: warning: passing argument 3 of ‘MVM_profile_heap_add_collectable_rel_const_cstr’ from incompatible pointer type [-Wincompatible-pointer-types]
MVM_profile_heap_add_collectable_rel_const_cstr(tc, snapshot, (g->facts[i][j].value.o), "Known Value");
~~~~~~~~~~~~~~~~~~~~~^~~
In file included from src/moar.h:212,
from src/spesh/graph.c:1:
src/profiler/heapsnapshot.h:210:47: note: expected ‘MVMCollectable *’ {aka ‘struct MVMCollectable *’} but argument is of type ‘MVMObject *’ {aka ‘struct MVMObject *’}
MVMHeapSnapshotState *ss, MVMCollectable *collectable, char *desc);
~~~~~~~~~~~~~~~~^~~~~~~~~~~
src/spesh/graph.c:1421:104: warning: passing argument 3 of ‘MVM_profile_heap_add_collectable_rel_const_cstr’ from incompatible pointer type [-Wincompatible-pointer-types]
MVM_profile_heap_add_collectable_rel_const_cstr(tc, snapshot, (g->facts[i][j].value.s), "Known String Value");
~~~~~~~~~~~~~~~~~~~~~^~~
In file included from src/moar.h:212,
from src/spesh/graph.c:1:
src/profiler/heapsnapshot.h:210:47: note: expected ‘MVMCollectable *’ {aka ‘struct MVMCollectable *’} but argument is of type ‘MVMString *’ {aka ‘struct MVMString *’}
MVMHeapSnapshotState *ss, MVMCollectable *collectable, char *desc);
~~~~~~~~~~~~~~~~^~~~~~~~~~~
src/spesh/graph.c:1432:78: warning: passing argument 3 of ‘MVM_profile_heap_add_collectable_rel_idx’ from incompatible pointer type [-Wincompatible-pointer-types]
MVM_profile_heap_add_collectable_rel_idx(tc, snapshot, (g->inlines[i].sf), i);
~~~~~~~~~~~~~~^~~~
In file included from src/moar.h:212,
from src/spesh/graph.c:1:
src/profiler/heapsnapshot.h:214:47: note: expected ‘MVMCollectable *’ {aka ‘struct MVMCollectable *’} but argument is of type ‘MVMStaticFrame *’ {aka ‘struct MVMStaticFrame *’}
MVMHeapSnapshotState *ss, MVMCollectable *collectable, MVMuint64 idx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment