Some small cosmetic tweaks
authorAndreas Rottmann <a.rottmann@gmx.at>
Thu, 19 Mar 2009 00:25:09 +0000 (01:25 +0100)
committerAndreas Rottmann <a.rottmann@gmx.at>
Thu, 19 Mar 2009 00:25:09 +0000 (01:25 +0100)
* Fix compiler warnings:

- Missing return value in annotation-testing code

- Fix two function declarations to have a (void) parameter list --
  this is not C++ ;-)

* Add tools/g-ir-scanner to .gitignore, as it's now generated

.gitignore
tests/scanner/annotation.c
tests/scanner/foo.h

index b3e6131..2ec0f4a 100644 (file)
@@ -103,3 +103,4 @@ tests/scanner/utility-1.0.typelib
 tests/extended.gir.test
 tools/g-ir-compiler
 tools/g-ir-generate
+tools/g-ir-scanner
index 7c25d9a..cbc9244 100644 (file)
@@ -618,6 +618,7 @@ annotation_object_extra_annos (AnnotationObject *object)
 char *
 annotation_get_source_file (void)
 {
+  return NULL;
 }
 
 /**
index 8097cfc..be3a955 100644 (file)
@@ -120,7 +120,7 @@ gboolean              foo_object_virtual_method    (FooObject *object, int first
 
 void                  foo_object_read              (FooObject *object, int offset, int length);
 
-int                   foo_object_static_meth       ();
+int                   foo_object_static_meth       (void);
 
 struct _FooSubobject
 {
@@ -133,9 +133,9 @@ struct _FooSubobjectClass
 };
 
 GType                 foo_subobject_get_type       (void) G_GNUC_CONST;
-FooSubobject*         foo_subobject_new            ();
+FooSubobject*         foo_subobject_new            (void);
 
-FooObject *           foo_object_get_default       ();
+FooObject *           foo_object_get_default       (void);
 
 GType                 foo_buffer_get_type          (void);