summaryrefslogtreecommitdiff
path: root/gstdoc-scangobj
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-02-28 09:33:08 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-02-28 09:33:08 +0100
commitbcb1518c08c889dd7eda06936fc26cad85fac755 (patch)
treecbe4199873aafb7b84cf068dcabf401d6d211c31 /gstdoc-scangobj
parentfe1672ec77616f5c4e527c0e2be493a7f95b1ebf (diff)
gstdoc-scangobj: Fix compiler warning
gstreamer-plugins-scan.c:287:12: error: self-comparison always evaluates to false [-Werror,-Wtautological-compare] if (argv != argv) argc = argc; ^ gstreamer-plugins-scan.c:287:26: error: explicitly assigning a variable of type 'int' to itself [-Werror,-Wself-assign] if (argv != argv) argc = argc; ~~~~ ^ ~~~~
Diffstat (limited to 'gstdoc-scangobj')
-rwxr-xr-xgstdoc-scangobj5
1 files changed, 1 insertions, 4 deletions
diff --git a/gstdoc-scangobj b/gstdoc-scangobj
index 68290c9..4ad9786 100755
--- a/gstdoc-scangobj
+++ b/gstdoc-scangobj
@@ -464,11 +464,8 @@ static void output_args (void);
static void output_object_args (FILE *fp, GType object_type);
int
-main (int argc, char *argv[])
+main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[])
{
- /* Silence the compiler: */
- if (argv != argv) argc = argc;
-
$TYPE_INIT_FUNC;
get_object_types ();