Skip to content

Commit 8783da5

Browse files
committed
Fix GCC warning
1 parent 8a577a6 commit 8783da5

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

include/deemon/module.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
/**/
3838

3939
#include <stddef.h> /* size_t */
40+
#include <stdint.h> /* uint16_t */
4041

4142
DECL_BEGIN
4243

@@ -1161,6 +1162,10 @@ DeeModule_ImportRelString(/*Module*/ DeeObject *__restrict basemodule,
11611162

11621163

11631164
#ifdef CONFIG_BUILDING_DEEMON
1165+
struct attribute_info;
1166+
struct attribute_lookup_rules;
1167+
struct attrinfo;
1168+
11641169
/* Access global variables of a given module by their name described by a C-string.
11651170
* These functions act and behave just as once would expect, raising errors when
11661171
* appropriate and returning NULL/false/-1 upon error or not knowing the given name. */
@@ -1175,7 +1180,7 @@ INTDEF WUNUSED NONNULL((1, 2)) int DCALL DeeModule_DelAttrStringLenHash(DeeModul
11751180
INTDEF WUNUSED NONNULL((1, 2, 4)) int DCALL DeeModule_SetAttrStringHash(DeeModuleObject *self, char const *__restrict attr, Dee_hash_t hash, DeeObject *value);
11761181
INTDEF WUNUSED NONNULL((1, 2, 5)) int DCALL DeeModule_SetAttrStringLenHash(DeeModuleObject *self, char const *__restrict attr, size_t attrlen, Dee_hash_t hash, DeeObject *value);
11771182
INTDEF WUNUSED NONNULL((1, 2, 3)) int DCALL DeeModule_FindAttr(DeeModuleObject *__restrict self, struct attribute_info *__restrict result, struct attribute_lookup_rules const *__restrict rules);
1178-
INTDEF WUNUSED NONNULL((1, 2, 5)) bool DCALL DeeModule_FindAttrInfoStringLenHash(DeeModuleObject *self, char const *__restrict attr, size_t attrlen, Dee_hash_t hash, struct Dee_attrinfo *__restrict retinfo);
1183+
INTDEF WUNUSED NONNULL((1, 2, 5)) bool DCALL DeeModule_FindAttrInfoStringLenHash(DeeModuleObject *self, char const *__restrict attr, size_t attrlen, Dee_hash_t hash, struct attrinfo *__restrict retinfo);
11791184

11801185
#define DeeModule_GetAttr(self, attr) DeeModule_GetAttrStringHash(self, DeeString_STR(attr), DeeString_Hash(attr))
11811186
#define DeeModule_GetAttrHash(self, attr, hash) DeeModule_GetAttrStringHash(self, DeeString_STR(attr), hash)

src/deemon/execute/dec.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@
6363

6464
#include <hybrid/byteorder.h>
6565
#include <hybrid/byteswap.h>
66+
#include <hybrid/typecore.h>
6667
#include <hybrid/unaligned.h>
68+
/**/
69+
70+
#include <stdarg.h> /* va_list */
71+
#include <stddef.h> /* size_t */
72+
#include <stdint.h> /* uint16_t */
6773

6874
DECL_BEGIN
6975

0 commit comments

Comments
 (0)