app: Clean-up warnings

This commit is contained in:
Joel16 2022-01-29 20:24:01 -05:00
parent 3b5bfdaace
commit f22e1046bf
4 changed files with 4 additions and 5 deletions

View File

@ -26,7 +26,7 @@ typedef struct {
SceOff selected = 0;
std::vector<SceIoDirent> entries;
std::vector<Tex> textures;
int frame_count = 0;
unsigned int frame_count = 0;
float zoom_factor = 1.0f;
} WindowData;

View File

@ -144,7 +144,7 @@ namespace FS {
}
static int GetPrevPath(char path[256]) {
if (cfg.cwd.c_str() == "")
if (cfg.cwd == "")
return -1;
// Remove upmost directory

View File

@ -48,7 +48,6 @@ namespace FileBrowser {
}
namespace Tabs {
static int device = 0;
static const ImVec2 tex_size = ImVec2(22, 22);
static const char *devices[] = { "os0:", "pd0:", "sa0:", "tm0:", "ud0:", "ur0:", "ux0:", "vd0:", "vs0:"};

View File

@ -23,7 +23,7 @@ namespace Windows {
};
static void ClearTextures(WindowData &data) {
for (int i = 0; i < data.textures.size(); i++)
for (unsigned int i = 0; i < data.textures.size(); i++)
Textures::Free(data.textures[i]);
data.textures.clear();
@ -67,7 +67,7 @@ namespace Windows {
if (data.selected == data.entries.size())
return ret;
for (int i = data.selected + 1; i < data.entries.size(); i++) {
for (unsigned int i = data.selected + 1; i < data.entries.size(); i++) {
if (!(ret = Windows::HandleScroll(data, i)))
continue;
else