fix compiler warnings (#3094)

This commit is contained in:
Jcw87
2026-02-11 00:14:18 -08:00
committed by GitHub
parent e537b32c66
commit a07ec61d66
10 changed files with 11 additions and 25 deletions
+1 -2
View File
@@ -471,8 +471,7 @@ const ResTIMG* J2DPicture::changeTexture(char const* resName, u8 param_1) {
return changeTexture((ResTIMG*)J2DScreen::getNameResource(resName), param_1);
}
static bool dummy_weak_order(JUTTexture* tex) {
J2DPicture* picture;
static bool dummy_weak_order(J2DPicture* picture, JUTTexture* tex) {
return picture->append(tex, 1.0f);
}
+1 -5
View File
@@ -6,22 +6,18 @@
#include "JSystem/J3DGraphBase/J3DMaterial.h"
#include "JSystem/J3DGraphBase/J3DVertex.h"
static void dummy() {
J3DShape* shape;
static void dummy(J3DShape* shape, J3DVertexBuffer* vtxBuf, J3DModel* model, J3DModelData* modelData) {
J3DMaterial* material = shape->getMaterial();
J3DJoint* joint = material->getJoint();
J3DVertexBuffer* vtxBuf;
vtxBuf->swapTransformedVtxPos();
J3DVertexData* vtxData = vtxBuf->getVertexData();
vtxBuf->getTransformedVtxPos(0);
vtxBuf->getCurrentVtxNrm();
vtxBuf->setCurrentVtxPos(NULL);
J3DModel* model;
model->getVertexBuffer();
J3DModelData* modelData;
vtxData->getNrmNum();
modelData->getNrmNum();
vtxData->getVtxNum();
+1 -3
View File
@@ -6,9 +6,7 @@
#include "JSystem/J3DGraphLoader/J3DModelLoader.h"
#include "JSystem/JMath/JMath.h"
static void dummy() {
J3DMtxCalcJ3DSysInitSoftimage* img;
Vec* vec;
static void dummy(J3DMtxCalcJ3DSysInitSoftimage* img, Vec* vec) {
Mtx mtx;
img->init(*vec, mtx);
checkScaleOne(*vec);
+1 -3
View File
@@ -6,14 +6,12 @@
#include "JSystem/JMath/JMath.h"
#include "JSystem/JUtility/JUTTexture.h"
void dummy() {
void J3DUShadow_dummy(JUTTexture* tex, JGeometry::TVec3<f32>* vec) {
JMAAbs(0.0f);
JMathInlineVEC::C_VECDotProduct(NULL, NULL);
JGeometry::TVec3<f32>* vec;
vec->dot(*vec);
vec->length();
JUTTexture* tex;
tex->getCaptureFlag();
tex->getFormat();
JMath::fastSqrt<f32>(0.0f);
+1 -3
View File
@@ -4,8 +4,6 @@
#include "JSystem/JGeometry.h"
static void dummy() {
JGeometry::TVec3<f32>* vec_1;
JGeometry::TVec3<f32>* vec_2;
static void dummy(JGeometry::TVec3<f32>* vec_1, JGeometry::TVec3<f32>* vec_2) {
*vec_1 = *vec_2;
}