Skip to content

Commit

Permalink
Fix GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
GrieferAtWork committed Dec 8, 2024
1 parent 005db8f commit 290a024
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/deemon/execute/function-wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -4446,7 +4446,7 @@ FrameSymbolsByName_TryName2LocId(FrameSymbolsByName *self,
return (canonical_lid_t)-1;
}

PRIVATE WUNUSED NONNULL((1, 2)) canonical_lid_t DCALL
PRIVATE WUNUSED NONNULL((1)) canonical_lid_t DCALL
FrameSymbolsByName_TryVerifyLocId(FrameSymbolsByName *self, size_t ulid) {
/* Check that "lid" can appear in "self" */
canonical_lid_t size;
Expand Down Expand Up @@ -4475,7 +4475,7 @@ FrameSymbolsByName_TryVerifyLocId(FrameSymbolsByName *self, size_t ulid) {
return (canonical_lid_t)-2;
}

PRIVATE WUNUSED NONNULL((1, 2)) canonical_lid_t DCALL
PRIVATE WUNUSED NONNULL((1)) canonical_lid_t DCALL
FrameSymbolsByName_VerifyLocId(FrameSymbolsByName *self, size_t lid) {
canonical_lid_t result;
result = FrameSymbolsByName_TryVerifyLocId(self, lid);
Expand Down
13 changes: 0 additions & 13 deletions src/deemon/objects/rodict.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,19 +992,6 @@ rodict_trygetitem_string_len_hash(DeeRoDictObject *__restrict self,
return ITER_DONE;
}

PRIVATE struct type_nsi tpconst rodict_nsi = {
/* .nsi_class = */ TYPE_SEQX_CLASS_MAP,
/* .nsi_flags = */ TYPE_SEQX_FNORMAL,
{
/* .nsi_maplike = */ {
/* .nsi_getsize = */ (dfunptr_t)&rodict_size,
/* .nsi_nextkey = */ (dfunptr_t)&rodictiterator_nextkey,
/* .nsi_nextvalue = */ (dfunptr_t)&rodictiterator_nextvalue,
}
}
};


PRIVATE struct type_seq rodict_seq = {
/* .tp_iter = */ (DREF DeeObject *(DCALL *)(DeeObject *__restrict))&rodict_iter,
/* .tp_sizeob = */ NULL,
Expand Down
2 changes: 1 addition & 1 deletion src/deemon/objects/seq/unique-iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ INTERN DeeTypeObject UniqueIteratorWithKey_Type = {
/* .tp_with = */ NULL,
/* .tp_buffer = */ NULL,
/* .tp_methods = */ NULL,
/* .tp_getsets = */ NULL, /* TODO: "__encountered__->?DSet" (using a custom wrapper object) */
/* .tp_getsets = */ uqiwk_getsets,
/* .tp_members = */ uqiwk_members,
/* .tp_class_methods = */ NULL,
/* .tp_class_getsets = */ NULL,
Expand Down
2 changes: 1 addition & 1 deletion src/deemon/runtime/runtime_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ INTERN ATTR_COLD NONNULL((1, 2)) int
key, Dee_TYPE(self), self);
}

INTERN ATTR_COLD NONNULL((1, 2)) int
INTERN ATTR_COLD NONNULL((1)) int
(DCALL err_unbound_key_int)(DeeObject *self, size_t key) {
ASSERT_OBJECT(self);
return DeeError_Throwf(&DeeError_UnboundItem,
Expand Down

0 comments on commit 290a024

Please sign in to comment.