projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c778e2
)
GstElement: Fix warning with GCC 4.6
author
Bastien Nocera
<hadess@hadess.net>
Fri, 28 Jan 2011 19:08:08 +0000
(19:08 +0000)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Fri, 28 Jan 2011 19:59:56 +0000
(19:59 +0000)
gstelement.c: In function ‘gst_element_get_request_pad’:
gstelement.c:1052:18: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable]
https://bugzilla.gnome.org/show_bug.cgi?id=640850
gst/gstelement.c
patch
|
blob
|
history
diff --git
a/gst/gstelement.c
b/gst/gstelement.c
index
f92841c
..
e37af7c
100644
(file)
--- a/
gst/gstelement.c
+++ b/
gst/gstelement.c
@@
-1053,7
+1053,8
@@
gst_element_get_request_pad (GstElement * element, const gchar * name)
/* it's an int */
tmp = strtol (data, &endptr, 10);
- if (endptr && *endptr == '\0') {
+ if (tmp != G_MINLONG && tmp != G_MAXLONG && endptr &&
+ *endptr == '\0') {
templ_found = TRUE;
req_name = name;
break;