Skip to content

Undeclared variables. #44

Open
Open
@n0toose

Description

@n0toose

There are apparently some missing variables, and I can't figure out what these variables stand for in order to define them myself.

Here's the relevant CMake output;

/home/panos/projects/Basin/src/login_stage_handler.c:166:20: error: ‘playersToLoad’ undeclared (first use in this function)
     add_collection(playersToLoad, player);
                    ^~~~~~~~~~~~~
/home/panos/projects/Basin/src/login_stage_handler.c:394:54: error: ‘value’ undeclared (first use in this function)
             struct player* player = (struct player*) value;
                                                      ^~~~~
/home/panos/projects/Basin/src/login_stage_handler.c:393:38: error: ‘players’ undeclared (first use in this function); did you mean ‘player’?
             BEGIN_HASHMAP_ITERATION (players);
                                      ^~~~~~~
                                      player
/home/panos/projects/Basin/src/block.c:1800:106: error: ‘struct json_object’ has no member named ‘child_count’; did you mean ‘children’?
         bi->boundingBoxes = colls->child_count == 0 ? NULL : xmalloc(sizeof(struct boundingbox) * colls->child_count);
                                                                                                          ^~~~~~~~~~~
                                                                                                          children
/home/panos/projects/Basin/src/block.c:1761:5: warning: implicit declaration of function ‘freeJSON’; did you mean ‘free’? [-Wimplicit-function-declaration]
     freeJSON(&json);
     ^~~~~~~~

I'm currently working on this one.

/home/panos/projects/Basin/src/login_stage_handler.c:330:13: warning: implicit declaration of function ‘player_kick’; did you mean ‘player_tick’? [-Wimplicit-function-declaration]
             player_kick(player, "You have logged in from another location!");
             ^~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions