mirror of https://github.com/snes9xgit/snes9x.git
Fix GCC unused function/variable warnings
This commit is contained in:
parent
592cfeeaae
commit
c5bd183b2b
|
@ -1534,8 +1534,9 @@ double
|
||||||
Snes9xWindow::get_refresh_rate ()
|
Snes9xWindow::get_refresh_rate ()
|
||||||
{
|
{
|
||||||
double refresh_rate = 0.0;
|
double refresh_rate = 0.0;
|
||||||
|
#if defined GDK_WINDOWING_X11 || defined GDK_WINDOWING_WAYLAND
|
||||||
GdkDisplay *display = gtk_widget_get_display (window);
|
GdkDisplay *display = gtk_widget_get_display (window);
|
||||||
GdkWindow *gdk_window = gtk_widget_get_window (window);
|
#endif
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
if (GDK_IS_X11_DISPLAY (display))
|
if (GDK_IS_X11_DISPLAY (display))
|
||||||
|
@ -1549,6 +1550,7 @@ Snes9xWindow::get_refresh_rate ()
|
||||||
#ifdef GDK_WINDOWING_WAYLAND
|
#ifdef GDK_WINDOWING_WAYLAND
|
||||||
if (GDK_IS_WAYLAND_DISPLAY (display))
|
if (GDK_IS_WAYLAND_DISPLAY (display))
|
||||||
{
|
{
|
||||||
|
GdkWindow *gdk_window = gtk_widget_get_window (window);
|
||||||
GdkMonitor *monitor = gdk_display_get_monitor_at_window(display, gdk_window);
|
GdkMonitor *monitor = gdk_display_get_monitor_at_window(display, gdk_window);
|
||||||
refresh_rate = (double) gdk_monitor_get_refresh_rate(monitor) / 1000.0;
|
refresh_rate = (double) gdk_monitor_get_refresh_rate(monitor) / 1000.0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,6 +268,7 @@ static std::string canonicalize(const std::string &noncanonical)
|
||||||
return filename_string;
|
return filename_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_SLANG
|
||||||
static GLuint string_to_format(char *format)
|
static GLuint string_to_format(char *format)
|
||||||
{
|
{
|
||||||
#define MATCH(s, f) \
|
#define MATCH(s, f) \
|
||||||
|
@ -306,6 +307,7 @@ static GLuint string_to_format(char *format)
|
||||||
|
|
||||||
return GL_RGBA;
|
return GL_RGBA;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// filename must be canonical
|
// filename must be canonical
|
||||||
void GLSLShader::read_shader_file_with_includes(std::string filename,
|
void GLSLShader::read_shader_file_with_includes(std::string filename,
|
||||||
|
|
Loading…
Reference in New Issue