Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple of PSP build warnings #2283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoshSchreuder
Copy link
Contributor

Nothing major, just a couple of things that were bugging me while working on PSP.

@@ -56,7 +56,7 @@ static s16 g_SineTable[] = {
#include "move_entity.h"
#include "fall_entity.h"

#if defined(VERSION_BETA) || STAGE == STAGE_ST0
#if defined(VERSION_BETA) || (STAGE == STAGE_ST0 && !defined(VERSION_PSP))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is stripped on PSP but still goes through the compiler, we can just exclude it.

### mwccpsp.exe Compiler:
#      In: src\st\st_common.h
#    From: src\st\st0\st_common.c
# -------------------------------
#      61: u8 unkState;
# Warning:    ^^^^^^^^
#   variable 'unkState' is not initialized before being used

@@ -80,8 +80,6 @@ void ProcessEvent(Entity* self, bool resetEvent) {
} else {
queue = g_EventQueue;
while (queue->next != NULL) {
if (!evt->delay) {
}
Copy link
Contributor Author

@JoshSchreuder JoshSchreuder Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this was added, but doesn't seem needed for a match

### mwccpsp.exe Compiler:
#      In: src\servant\process_event.h
#    From: src\servant\tt_000\bat.c
# ---------------------------------
#      10: ServantEvent* evt;
# Warning:             ^
#   variable 'evt' is not initialized before being used
### mwccpsp.exe Compiler:
#      In: src\servant\process_event.h
#    From: src\servant\tt_000\tmp0ls8s_qu.c
# -----------------------------------------
#      10: ServantEvent* evt;
# Warning:             ^
#   variable 'evt' is not initialized before being used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants