[dia] [warningectomy] Slopppy prototyping
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] Slopppy prototyping
- Date: Sat, 31 Jul 2010 18:08:48 +0000 (UTC)
commit c1c247ee08d22840f2622c5690e711592084ff65
Author: Hans Breuer <hans breuer org>
Date: Sat Jul 31 11:48:46 2010 +0200
[warningectomy] Slopppy prototyping
diagram_as_object.c:180: warning: return type defaults to 'int'
diagram_as_object.c:179: warning: no previous prototype for '_dae_draw'
diagram_as_object.c: In function '_dae_draw':
diagram_as_object.c:210: warning: implicit declaration of function
'close'
diagram_as_object.c:224: warning: control reaches end of non-void
function
objects/Misc/diagram_as_object.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/objects/Misc/diagram_as_object.c b/objects/Misc/diagram_as_object.c
index 78bf7a1..6c62ba0 100644
--- a/objects/Misc/diagram_as_object.c
+++ b/objects/Misc/diagram_as_object.c
@@ -27,6 +27,9 @@
# include <sys/utime.h>
#endif
#include <glib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* close */
+#endif
#ifdef G_OS_WIN32
#include <io.h> /* close */
#endif
@@ -176,6 +179,7 @@ _dae_move(DiagramAsElement *dae, Point *to)
return NULL;
}
+static void
_dae_draw(DiagramAsElement *dae, DiaRenderer *renderer)
{
DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]