(Mac) More warning fixes
This commit is contained in:
parent
59952c520b
commit
1ece33337c
|
@ -1,4 +1,4 @@
|
||||||
/* RetroArch - A frontend for libretro.
|
/* RetroArch - A frontend for libretro.
|
||||||
* Copyright (C) 2010-2017 - Hans-Kristian Arntzen
|
* Copyright (C) 2010-2017 - Hans-Kristian Arntzen
|
||||||
*
|
*
|
||||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
|
@ -40,7 +40,7 @@ template <typename M, typename S>
|
||||||
static string get_semantic_name(const unordered_map<string, M>* map,
|
static string get_semantic_name(const unordered_map<string, M>* map,
|
||||||
S semantic, unsigned index)
|
S semantic, unsigned index)
|
||||||
{
|
{
|
||||||
for (const pair<string, M>& m : *map)
|
for (const auto& m : *map)
|
||||||
{
|
{
|
||||||
if (m.second.semantic == semantic && m.second.index == index)
|
if (m.second.semantic == semantic && m.second.index == index)
|
||||||
return m.first;
|
return m.first;
|
||||||
|
|
|
@ -228,7 +228,7 @@ int libretrodb_open(const char *path, libretrodb_t *db)
|
||||||
db->path = strdup(path);
|
db->path = strdup(path);
|
||||||
db->root = filestream_tell(fd);
|
db->root = filestream_tell(fd);
|
||||||
|
|
||||||
if ((rv = (int)filestream_read(fd, &header, sizeof(header))) == -1)
|
if ((int)filestream_read(fd, &header, sizeof(header)) == -1)
|
||||||
{
|
{
|
||||||
rv = -errno;
|
rv = -errno;
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue