egl: Fix GCC warning

src/backends/meta-egl.c: In function ‘set_egl_error’:
src/backends/meta-egl.c:144:16: error: format not a string literal and no format arguments [-Werror=format-security]
      error_str);
      ^~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=777389
This commit is contained in:
Bastien Nocera 2017-01-17 14:21:23 +01:00
parent f5a70aa1e2
commit 9b64e09a24

View File

@ -139,7 +139,7 @@ set_egl_error (GError **error)
return; return;
error_str = get_egl_error_str (); error_str = get_egl_error_str ();
g_set_error (error, G_IO_ERROR, g_set_error_literal (error, G_IO_ERROR,
G_IO_ERROR_FAILED, G_IO_ERROR_FAILED,
error_str); error_str);
} }