Skip to content

Instantly share code, notes, and snippets.

@openedev
Created February 20, 2020 18:24
Show Gist options
  • Select an option

  • Save openedev/018fa825f76592a207d5be6e33cdaf19 to your computer and use it in GitHub Desktop.

Select an option

Save openedev/018fa825f76592a207d5be6e33cdaf19 to your computer and use it in GitHub Desktop.
From 92243d1e1b073fa0c366c8e842344f42c04ac6b4 Mon Sep 17 00:00:00 2001
From: Jagan Teki <jagan@amarulasolutions.com>
Date: Thu, 20 Feb 2020 23:35:00 +0530
Subject: [PATCH] rkcamsrc: Fix build error with
-Werror=deprecated-declarations
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes:
rkcamsrc/rkcamsrc.c: In function ‘gst_rkcamsrc_create’:
rkcamsrc/rkcamsrc.c:719:7: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
GTimeVal now;
rkcamsrc/rkcamsrc.c:722:7: error: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Werror=deprecated-declarations]
g_get_current_time (&now);
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 0ba711f..71a7de6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -288,7 +288,7 @@ AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
-Wwrite-strings -Wold-style-definition -Waggregate-return
-Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
- -Wnested-externs $NO_WARNINGS])
+ -Wno-deprecated-declarations -Wnested-externs $NO_WARNINGS])
dnl define an ERROR_CXXFLAGS Makefile variable
AG_GST_SET_ERROR_CXXFLAGS($FATAL_WARNINGS, [
--
2.17.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment