Remove some warnings

This commit is contained in:
twinaphex 2016-05-08 17:54:30 +02:00
parent 518a83b2c3
commit 7e1a06d8dd
4 changed files with 4 additions and 7 deletions

View File

@ -939,8 +939,6 @@ bool audio_driver_toggle_mute(void)
bool audio_driver_ctl(enum rarch_audio_ctl_state state, void *data)
{
settings_t *settings = config_get_ptr();
switch (state)
{
case RARCH_AUDIO_CTL_DESTROY:

View File

@ -40,7 +40,6 @@ extern "C" {
enum rarch_audio_ctl_state
{
RARCH_AUDIO_CTL_NONE = 0,
RARCH_AUDIO_CTL_DEINIT,
RARCH_AUDIO_CTL_DESTROY,
RARCH_AUDIO_CTL_DESTROY_DATA,
RARCH_AUDIO_CTL_START,

View File

@ -407,7 +407,7 @@ static void uninit_drivers(int flags)
camera_driver_ctl(RARCH_CAMERA_CTL_DEINIT, NULL);
if (flags & DRIVER_AUDIO)
audio_driver_ctl(RARCH_AUDIO_CTL_DEINIT, NULL);
audio_driver_deinit();
if (flags & DRIVERS_VIDEO_INPUT)
video_driver_deinit();

View File

@ -58,10 +58,10 @@ static bool gl_raster_font_upload_atlas(gl_raster_t *font,
GLenum gl_format = GL_LUMINANCE_ALPHA;
size_t ncomponents = 2;
uint8_t *tmp = NULL;
struct retro_hw_render_callback *hwr = NULL;
bool ancient = false; /* add a check here if needed */
hwr = video_driver_get_hw_context();
#if defined(GL_VERSION_3_0)
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
#endif
if (ancient)
{