mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-23 08:10:55 +00:00
Silence most warnings
This commit is contained in:
parent
74dde204c0
commit
4756c2eb60
@ -238,7 +238,7 @@ bool retro_load_game(const struct retro_game_info *info)
|
||||
return false;
|
||||
|
||||
MDFN_PixelFormat pix_fmt(MDFN_COLORSPACE_RGB, 16, 8, 0, 24);
|
||||
memset(&last_pixel_format, 0, sizeof(MDFN_PixelFormat));
|
||||
last_pixel_format = MDFN_PixelFormat();
|
||||
|
||||
surf = new MDFN_Surface(NULL, FB_WIDTH, FB_HEIGHT, FB_WIDTH, pix_fmt);
|
||||
|
||||
|
@ -280,14 +280,16 @@ static bool TestConditions(const char *string)
|
||||
//printf("TR: %s\n", string);
|
||||
while(sscanf(string, "%u %c %63s %63s %63s", &bytelen, &endian, address, operation, value) == 5 && passed)
|
||||
{
|
||||
uint32 v_address;
|
||||
uint64 v_value;
|
||||
uint64 value_at_address;
|
||||
#if 0
|
||||
uint32 v_address;
|
||||
|
||||
if(address[0] == '0' && address[1] == 'x')
|
||||
v_address = strtoul(address + 2, NULL, 16);
|
||||
else
|
||||
v_address = strtoul(address, NULL, 10);
|
||||
#endif
|
||||
|
||||
if(value[0] == '0' && value[1] == 'x')
|
||||
v_value = strtoull(value + 2, NULL, 16);
|
||||
|
@ -212,7 +212,7 @@ static int WriteStateChunk(StateMem *st, const char *sname, SFORMAT *sf)
|
||||
uint8_t sname_tmp[32];
|
||||
|
||||
memset(sname_tmp, 0, sizeof(sname_tmp));
|
||||
strncpy((char *)sname_tmp, sname, 32);
|
||||
memcpy((char *)sname_tmp, sname, 32);
|
||||
|
||||
if(strlen(sname) > 32)
|
||||
printf("Warning: section name is too long: %s\n", sname);
|
||||
|
@ -46,13 +46,13 @@ MDFN_PixelFormat::MDFN_PixelFormat(const unsigned int p_colorspace, const uint8
|
||||
|
||||
MDFN_Surface::MDFN_Surface()
|
||||
{
|
||||
memset(&format, 0, sizeof(format));
|
||||
format = MDFN_PixelFormat();
|
||||
|
||||
pixels = NULL;
|
||||
pixels16 = NULL;
|
||||
pitchinpix = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
pixels = NULL;
|
||||
pixels16 = NULL;
|
||||
pitchinpix = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
}
|
||||
|
||||
MDFN_Surface::MDFN_Surface(void *const p_pixels, const uint32 p_width, const uint32 p_height, const uint32 p_pitchinpix, const MDFN_PixelFormat &nf)
|
||||
|
Loading…
Reference in New Issue
Block a user