aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-03 19:00:18 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-03 19:59:14 (GMT)
commitdb3a9eec148a0e7bc1ca649e4f76860d7ac28e16 (patch)
tree4f53772ab8089ab3b66292c2e9cf4bc160bc8219 /src/callbacks.c
parentc1d40f2a0066abba0cedddb4c740cd1873edf915 (diff)
Fix some gcc warnings
Fedora tries to build it with: CFLAGS="-Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Werror=return-type" With makes it hit some Werror conditions. Solve those and a bunch of random warnings. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.c')
-rw-r--r--src/callbacks.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index ccbb31a..941e828 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -166,12 +166,12 @@ void acap_func (GtkWidget * rb, cam * cam)
g_timeout_add (cam->timeout_interval,
(GSourceFunc) timeout_capture_func, cam);
if (cam->debug == TRUE) {
- printf ("add autocap - %d - timeout_interval = \n",
+ printf ("add autocap - %d - timeout_interval = %d\n",
cam->timeout_id, cam->timeout_interval);
}
} else {
if (cam->debug == TRUE) {
- printf ("remove autocap - %d - timeout_interval = \n",
+ printf ("remove autocap - %d - timeout_interval = %d\n",
cam->timeout_id, cam->timeout_interval);
}
g_source_remove (cam->timeout_id);
@@ -350,7 +350,6 @@ static int apply_remote_pref(cam *cam)
void prefs_func (GtkWidget * okbutton, cam * cam)
{
GConfClient *client;
- gchar *rdir;
client = gconf_client_get_default ();
@@ -534,9 +533,6 @@ void on_about_activate (GtkMenuItem * menuitem, cam * cam)
gtk_widget_show (about);
}
-void
-camorama_filter_color_filter(void* filter, guchar *image, int x, int y, int depth);
-
static void
apply_filters(cam* cam) {
/* v4l has reverse rgb order from what camora expect so call the color
@@ -559,7 +555,7 @@ apply_filters(cam* cam) {
* https://github.com/bratsche/gtk-/blob/master/gdk/gdkcairo.c
* With a small backport.
*/
-cairo_surface_t *create_from_pixbuf(const GdkPixbuf *pixbuf,
+static cairo_surface_t *create_from_pixbuf(const GdkPixbuf *pixbuf,
GdkWindow *for_window)
{
gint width = gdk_pixbuf_get_width (pixbuf);
@@ -800,7 +796,7 @@ void wb_change (GtkHScale * sc1, cam * cam)
v4l2_set_control(cam->dev, V4L2_CID_WHITENESS, cam->whiteness);
}
-void help_cb (GtkWidget * widget, gpointer data)
+static void help_cb (GtkWidget * widget, gpointer data)
{
GError *error = NULL;

Privacy Policy