Remove majority of warnings

There were a *lot* of warnings, managed to remove most of them.

Also, put warning flags before C_FLAGS and CXX_FLAGS, rather than after,
as -Wall -Wextra was overwriting flags that came before it.
This commit is contained in:
jp9000
2014-02-14 15:13:36 -07:00
parent 4bc282f5e9
commit 966b943d5b
46 changed files with 625 additions and 344 deletions

View File

@@ -688,7 +688,7 @@ indexbuffer_t device_create_indexbuffer(device_t device,
return buffer;
}
enum gs_texture_type device_gettexturetype(device_t device, texture_t texture)
enum gs_texture_type device_gettexturetype(texture_t texture)
{
return texture->type;
}
@@ -1547,7 +1547,7 @@ enum gs_color_format stagesurface_getcolorformat(stagesurf_t stagesurf)
return stagesurf->format;
}
bool stagesurface_map(stagesurf_t stagesurf, const void **data,
bool stagesurface_map(stagesurf_t stagesurf, const uint8_t **data,
uint32_t *linesize)
{
D3D11_MAPPED_SUBRESOURCE map;
@@ -1555,7 +1555,7 @@ bool stagesurface_map(stagesurf_t stagesurf, const void **data,
D3D11_MAP_READ, 0, &map)))
return false;
*data = map.pData;
*data = (uint8_t*)map.pData;
*linesize = map.RowPitch;
return true;
}