[dia/zbrown/graphene-rect: 9/11] general: fixup various warnings
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/zbrown/graphene-rect: 9/11] general: fixup various warnings
- Date: Sat, 1 May 2021 22:04:24 +0000 (UTC)
commit 9ecde1bdcdf11e2857ad5040579af20f2344a35a
Author: Zander Brown <zbrown gnome org>
Date: Tue Apr 6 21:49:33 2021 +0100
general: fixup various warnings
app/diagram_tree_model.c | 17 ++++++++++-------
app/interface.h | 2 --
app/recent_files.c | 2 +-
app/sheet-editor/sheets_dialog_callbacks.h | 13 ++-----------
lib/dia_svg.c | 4 ++++
lib/diapatternselector.c | 9 ++++-----
lib/orth_conn.c | 2 --
lib/renderer/diacairo.c | 6 +++---
objects/AADL/aadl.h | 4 +++-
objects/FS/function.c | 2 +-
objects/custom/custom_object.c | 4 ++++
plug-ins/cairo/diacairo.c | 6 +++---
plug-ins/python/pydia-color.c | 4 ++--
plug-ins/python/pydia-cpoint.c | 4 ++--
plug-ins/python/pydia-diagramdata.c | 4 ++--
plug-ins/python/pydia-display.c | 4 ++--
plug-ins/python/pydia-error.c | 4 ++--
plug-ins/python/pydia-export.c | 4 ++--
plug-ins/python/pydia-font.c | 4 ++--
plug-ins/python/pydia-geometry.c | 4 ++--
plug-ins/python/pydia-handle.c | 4 ++--
plug-ins/python/pydia-image.c | 4 ++--
plug-ins/python/pydia-layer.c | 4 ++--
plug-ins/python/pydia-menuitem.c | 4 ++--
plug-ins/python/pydia-object.c | 8 ++++----
plug-ins/python/pydia-paperinfo.c | 4 ++--
plug-ins/python/pydia-properties.c | 4 ++--
plug-ins/python/pydia-property.c | 4 ++--
plug-ins/python/pydia-sheet.c | 4 ++--
plug-ins/python/pydia-text.c | 4 ++--
30 files changed, 73 insertions(+), 74 deletions(-)
---
diff --git a/app/diagram_tree_model.c b/app/diagram_tree_model.c
index cb5a52b42..c35744c06 100644
--- a/app/diagram_tree_model.c
+++ b/app/diagram_tree_model.c
@@ -56,13 +56,6 @@ typedef struct _DiagramTreeModel
static GType _dtm_get_type (void);
static void _dtm_finalize (GObject *object);
-static void
-_dtm_class_init (DiagramTreeModelClass *klass)
-{
- GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
-
- gobject_class->finalize = _dtm_finalize;
-}
#define DIA_TYPE_DIAGRAM_TREE_MODEL (_dtm_get_type ())
#define DIAGRAM_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_DIAGRAM_TREE_MODEL,
DiagramTreeModel))
@@ -72,6 +65,16 @@ G_DEFINE_TYPE_WITH_CODE (DiagramTreeModel, _dtm, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
_dtm_iface_init))
+
+static void
+_dtm_class_init (DiagramTreeModelClass *klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+ gobject_class->finalize = _dtm_finalize;
+}
+
+
static GtkTreeModelFlags
_dtm_get_flags (GtkTreeModel *tree_model)
{
diff --git a/app/interface.h b/app/interface.h
index 9396efc85..0bd810336 100644
--- a/app/interface.h
+++ b/app/interface.h
@@ -48,8 +48,6 @@ void toolbox_hide(void);
GtkWidget *interface_get_toolbox_shell(void);
-void create_integrated_ui (void);
-
void create_sheets(GtkWidget *parent);
extern GtkWidget *modify_tool_button;
diff --git a/app/recent_files.c b/app/recent_files.c
index a5bb1294f..3f5da705d 100644
--- a/app/recent_files.c
+++ b/app/recent_files.c
@@ -134,7 +134,7 @@ recent_file_history_add (const char *fname)
void
recent_file_history_init (void)
{
- prefs.recent_documents_list_size = CLAMP(prefs.recent_documents_list_size, 0, 16);
+ prefs.recent_documents_list_size = prefs.recent_documents_list_size > 16 ? 16 :
prefs.recent_documents_list_size;
persistence_register_list("recent-files");
diff --git a/app/sheet-editor/sheets_dialog_callbacks.h b/app/sheet-editor/sheets_dialog_callbacks.h
index 5cb931909..276b79139 100644
--- a/app/sheet-editor/sheets_dialog_callbacks.h
+++ b/app/sheet-editor/sheets_dialog_callbacks.h
@@ -17,9 +17,10 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
*/
+#pragma once
+
#include <gtk/gtk.h>
gboolean on_sheets_main_dialog_delete_event (GtkWidget *widget,
@@ -29,16 +30,10 @@ void on_sheets_dialog_combo_changed (GtkComboBox
gpointer user_data);
void on_sheets_dialog_button_move_up_clicked (GtkButton *button,
gpointer user_data);
-void on_sheets_dialog_button_move_up_clicked (GtkButton *button,
- gpointer user_data);
-void on_sheets_dialog_button_new_clicked (GtkButton *button,
- gpointer user_data);
void on_sheets_dialog_button_new_clicked (GtkButton *button,
gpointer user_data);
void on_sheets_dialog_button_close_clicked (GtkButton *button,
gpointer user_data);
-void on_sheets_dialog_button_close_clicked (GtkButton *button,
- gpointer user_data);
void on_sheets_new_dialog_button_cancel_clicked (GtkButton *button,
gpointer user_data);
void on_sheets_dialog_button_edit_clicked (GtkButton *button,
@@ -47,8 +42,6 @@ void on_sheets_edit_dialog_button_cancel_clicked (GtkButton
gpointer user_data);
void on_sheets_dialog_button_remove_clicked (GtkButton *button,
gpointer user_data);
-void on_sheets_dialog_button_remove_clicked (GtkButton *button,
- gpointer user_data);
void on_sheets_remove_dialog_button_cancel_clicked (GtkButton *button,
gpointer user_data);
void on_sheets_new_dialog_radiobutton_svg_shape_toggled (GtkToggleButton *togglebutton,
@@ -65,8 +58,6 @@ void on_sheets_dialog_button_move_down_clicked (GtkButton
gpointer user_data);
void on_sheets_new_dialog_button_ok_clicked (GtkButton *button,
gpointer user_data);
-void on_sheets_new_dialog_radiobutton_line_break_toggled (GtkToggleButton *togglebutton,
- gpointer user_data);
void on_sheets_remove_dialog_button_ok_clicked (GtkButton *button,
gpointer user_data);
void on_sheets_edit_dialog_button_ok_clicked (GtkButton *button,
diff --git a/lib/dia_svg.c b/lib/dia_svg.c
index 36e10f5ab..d25183dd2 100644
--- a/lib/dia_svg.c
+++ b/lib/dia_svg.c
@@ -344,7 +344,11 @@ _parse_color(gint32 *color, const char *str)
int r = 0, g = 0, b = 0;
if (3 == sscanf (str+4, "%d,%d,%d", &r, &g, &b)) {
/* Set alpha to 1.0 */
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wshift-overflow"
+ #warning TODO: Is there a proper solution here?
*color = ((0xFF<<24) & 0xFF000000) | ((r<<16) & 0xFF0000) | ((g<<8) & 0xFF00) | (b & 0xFF);
+ #pragma GCC diagnostic pop
} else if (strchr (str+4, '%')) {
/* e.g. cairo uses percent values */
char **vals = g_strsplit (str+4, "%,", -1);
diff --git a/lib/diapatternselector.c b/lib/diapatternselector.c
index dd9572fe4..314805d91 100644
--- a/lib/diapatternselector.c
+++ b/lib/diapatternselector.c
@@ -48,6 +48,10 @@ static guint dia_patternsel_signals[DIA_PATTERNSEL_LAST_SIGNAL] = { 0 };
static DiaPattern *_create_preset_pattern (guint n);
+GType dia_pattern_selector_get_type (void);
+
+G_DEFINE_TYPE (DiaPatternSelector, dia_pattern_selector, GTK_TYPE_HBOX);
+
static void
dia_pattern_selector_finalize(GObject *object)
@@ -73,11 +77,6 @@ dia_pattern_selector_class_init (DiaPatternSelectorClass *klass)
object_class->finalize = dia_pattern_selector_finalize;
}
-static GType dia_pattern_selector_get_type (void);
-
-G_DEFINE_TYPE (DiaPatternSelector, dia_pattern_selector, GTK_TYPE_HBOX);
-
-
/* GUI stuff - not completely done yet
- add/remove color stops
- toggle between radial/linear
diff --git a/lib/orth_conn.c b/lib/orth_conn.c
index 230c86749..be0e8be71 100644
--- a/lib/orth_conn.c
+++ b/lib/orth_conn.c
@@ -85,8 +85,6 @@ endsegment_create_change (OrthConn *orth,
Point *point,
Handle *handle);
-static void
-place_handle_by_swapping(OrthConn *orth, int index, Handle *handle);
struct _DiaOrthConnEndSegmentObjectChange {
DiaObjectChange obj_change;
diff --git a/lib/renderer/diacairo.c b/lib/renderer/diacairo.c
index bda0febbc..434040686 100644
--- a/lib/renderer/diacairo.c
+++ b/lib/renderer/diacairo.c
@@ -82,7 +82,7 @@ cairo_export_data (DiagramData *data,
* filename encdong is always utf-8, so another conversion is needed.
*/
gchar *filename_crt = (gchar *) filename;
-#if DIA_CAIRO_CAN_EMF
+#ifdef DIA_CAIRO_CAN_EMF
HDC hFileDC = NULL;
#endif
@@ -187,7 +187,7 @@ cairo_export_data (DiagramData *data,
break;
#endif
/* finally cairo can render to MetaFiles */
-#if DIA_CAIRO_CAN_EMF
+#ifdef DIA_CAIRO_CAN_EMF
case OUTPUT_EMF :
case OUTPUT_WMF : /* different only on close/'play' */
case OUTPUT_CLIPBOARD :
@@ -262,7 +262,7 @@ cairo_export_data (DiagramData *data,
cairo_surface_destroy(renderer->surface);
}
#endif
-#if DIA_CAIRO_CAN_EMF
+#ifdef DIA_CAIRO_CAN_EMF
if (OUTPUT_EMF == kind) {
FILE* f = g_fopen(filename, "wb");
HENHMETAFILE hEmf = CloseEnhMetaFile(hFileDC);
diff --git a/objects/AADL/aadl.h b/objects/AADL/aadl.h
index 7fa0170ef..e1efe8837 100644
--- a/objects/AADL/aadl.h
+++ b/objects/AADL/aadl.h
@@ -19,6 +19,9 @@
*/
+#pragma once
+
+
#include <config.h>
#include <assert.h>
@@ -214,7 +217,6 @@ void aadlbox_project_point_on_rectangle(DiaRectangle *rectangle,
void
aadlbox_inclined_project_point_on_nearest_border(Aadlbox *aadlbox,Point *p,
real *angle);
-void aadlprocess_text_position(Aadlbox *aadlbox, Point *p);
/* aadlthread.c */
void aadlbox_draw_inclined_box(Aadlbox *aadlbox, DiaRenderer *renderer,
diff --git a/objects/FS/function.c b/objects/FS/function.c
index dc0e38650..5ae78afbc 100644
--- a/objects/FS/function.c
+++ b/objects/FS/function.c
@@ -706,7 +706,7 @@ struct _IndentedMenus {
*/
#define FS_SUBMENU_MAXINDENT 5
-#if THIS_C_COMPILER_ALSO_UNDERSTANDS_EMACS_LISP
+#ifdef THIS_C_COMPILER_ALSO_UNDERSTANDS_EMACS_LISP
; Elisp functions to generate comments:)
(setq q nil)
(defun q-pop () (setq q (cdr q)))
diff --git a/objects/custom/custom_object.c b/objects/custom/custom_object.c
index 969122116..037b6ad44 100644
--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -373,7 +373,11 @@ custom_setup_properties (ShapeInfo *info, xmlNodePtr node)
* Maybe it even works cause the sizeof() in *_get_data_size can be
* calculated at compile time. Anyway, a mess ;) --hb
*/
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
+ #warning TODO: I mean this is clearly wrong
size = info->props[i].ops->get_data_size (&info->props[i]);
+ #pragma GCC diagnostic pop
info->ext_attr_size += size;
offs += size;
}
diff --git a/plug-ins/cairo/diacairo.c b/plug-ins/cairo/diacairo.c
index 9471ea9c2..3a87d7357 100644
--- a/plug-ins/cairo/diacairo.c
+++ b/plug-ins/cairo/diacairo.c
@@ -121,7 +121,7 @@ static DiaExportFilter pnga_export_filter = {
"cairo-alpha-png"
};
-#if DIA_CAIRO_CAN_EMF
+#ifdef DIA_CAIRO_CAN_EMF
static const gchar *emf_extensions[] = { "emf", NULL };
static DiaExportFilter emf_export_filter = {
N_("Cairo EMF"),
@@ -204,7 +204,7 @@ _plugin_unload (PluginInfo *info)
#endif
filter_unregister_export(&png_export_filter);
filter_unregister_export(&pnga_export_filter);
-#if DIA_CAIRO_CAN_EMF
+#ifdef DIA_CAIRO_CAN_EMF
filter_unregister_export(&emf_export_filter);
filter_unregister_export(&wmf_export_filter);
filter_unregister_callback (&cb_clipboard);
@@ -240,7 +240,7 @@ dia_plugin_init(PluginInfo *info)
#endif
filter_register_export(&png_export_filter);
filter_register_export(&pnga_export_filter);
-#if DIA_CAIRO_CAN_EMF
+#ifdef DIA_CAIRO_CAN_EMF
filter_register_export(&emf_export_filter);
filter_register_export(&wmf_export_filter);
filter_register_callback (&cb_clipboard);
diff --git a/plug-ins/python/pydia-color.c b/plug-ins/python/pydia-color.c
index 9b048ef9c..a2447216c 100644
--- a/plug-ins/python/pydia-color.c
+++ b/plug-ins/python/pydia-color.c
@@ -105,10 +105,10 @@ PyDiaColor_RichCompare (PyObject *self, PyObject *other, int op)
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaColor_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-cpoint.c b/plug-ins/python/pydia-cpoint.c
index 15ffde7a5..3d0f51990 100644
--- a/plug-ins/python/pydia-cpoint.c
+++ b/plug-ins/python/pydia-cpoint.c
@@ -61,10 +61,10 @@ PyDiaConnectionPoint_RichCompare (PyObject *self,
}
-static long
+static Py_hash_t
PyDiaConnectionPoint_Hash (PyObject *self)
{
- return (long) ((PyDiaConnectionPoint *) self)->cpoint;
+ return (Py_hash_t) ((PyDiaConnectionPoint *) self)->cpoint;
}
diff --git a/plug-ins/python/pydia-diagramdata.c b/plug-ins/python/pydia-diagramdata.c
index 89642709e..2e4b027c3 100644
--- a/plug-ins/python/pydia-diagramdata.c
+++ b/plug-ins/python/pydia-diagramdata.c
@@ -74,10 +74,10 @@ PyDiaDiagramData_RichCompare (PyObject *self,
}
-static long
+static Py_hash_t
PyDiaDiagramData_Hash (PyObject *self)
{
- return (long) ((PyDiaDiagramData *) self)->data;
+ return (Py_hash_t) ((PyDiaDiagramData *) self)->data;
}
diff --git a/plug-ins/python/pydia-display.c b/plug-ins/python/pydia-display.c
index a2bb2e0a3..de90348bf 100644
--- a/plug-ins/python/pydia-display.c
+++ b/plug-ins/python/pydia-display.c
@@ -52,10 +52,10 @@ PyDiaDisplay_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaDisplay_Hash (PyObject *self)
{
- return (long) ((PyDiaDisplay *) self)->disp;
+ return (Py_hash_t) ((PyDiaDisplay *) self)->disp;
}
diff --git a/plug-ins/python/pydia-error.c b/plug-ins/python/pydia-error.c
index c8d5d8c2f..9afddc425 100644
--- a/plug-ins/python/pydia-error.c
+++ b/plug-ins/python/pydia-error.c
@@ -131,10 +131,10 @@ PyDiaError_RichCompare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaError_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-export.c b/plug-ins/python/pydia-export.c
index 1089cc5ff..794b2c03a 100644
--- a/plug-ins/python/pydia-export.c
+++ b/plug-ins/python/pydia-export.c
@@ -53,10 +53,10 @@ PyDiaExportFilter_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaExportFilter_Hash (PyObject *self)
{
- return (long) ((PyDiaExportFilter *) self)->filter;
+ return (Py_hash_t) ((PyDiaExportFilter *) self)->filter;
}
diff --git a/plug-ins/python/pydia-font.c b/plug-ins/python/pydia-font.c
index 5255b3cf5..32934daf1 100644
--- a/plug-ins/python/pydia-font.c
+++ b/plug-ins/python/pydia-font.c
@@ -119,10 +119,10 @@ PyDiaFont_RichCompare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaFont_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-geometry.c b/plug-ins/python/pydia-geometry.c
index f28fa0f78..99cb7f5e3 100644
--- a/plug-ins/python/pydia-geometry.c
+++ b/plug-ins/python/pydia-geometry.c
@@ -370,10 +370,10 @@ PyDiaMatrix_RichCompare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaGeometry_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-handle.c b/plug-ins/python/pydia-handle.c
index 77be5a205..4cf40c901 100644
--- a/plug-ins/python/pydia-handle.c
+++ b/plug-ins/python/pydia-handle.c
@@ -56,10 +56,10 @@ PyDiaHandle_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaHandle_Hash (PyObject *self)
{
- return (long) ((PyDiaHandle *) self)->handle;
+ return (Py_hash_t) ((PyDiaHandle *) self)->handle;
}
diff --git a/plug-ins/python/pydia-image.c b/plug-ins/python/pydia-image.c
index c66d98df6..6191032ae 100644
--- a/plug-ins/python/pydia-image.c
+++ b/plug-ins/python/pydia-image.c
@@ -74,10 +74,10 @@ PyDiaImage_RichCompare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaImage_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-layer.c b/plug-ins/python/pydia-layer.c
index 06720d3b3..eede401d4 100644
--- a/plug-ins/python/pydia-layer.c
+++ b/plug-ins/python/pydia-layer.c
@@ -61,10 +61,10 @@ PyDiaLayer_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaLayer_Hash (PyObject *self)
{
- return (long) ((PyDiaLayer *) self)->layer;
+ return (Py_hash_t) ((PyDiaLayer *) self)->layer;
}
diff --git a/plug-ins/python/pydia-menuitem.c b/plug-ins/python/pydia-menuitem.c
index c108dfc6e..db8d27380 100644
--- a/plug-ins/python/pydia-menuitem.c
+++ b/plug-ins/python/pydia-menuitem.c
@@ -71,10 +71,10 @@ PyDiaMenuitem_RichCompare (PyObject *self,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaMenuitem_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-object.c b/plug-ins/python/pydia-object.c
index f4699c998..1829fe416 100644
--- a/plug-ins/python/pydia-object.c
+++ b/plug-ins/python/pydia-object.c
@@ -59,10 +59,10 @@ PyDiaObject_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaObject_Hash (PyObject *self)
{
- return (long) ((PyDiaObject *) self)->object;
+ return (Py_hash_t) ((PyDiaObject *) self)->object;
}
@@ -432,10 +432,10 @@ PyDiaObjectType_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaObjectType_Hash (PyObject *self)
{
- return (long) ((PyDiaObjectType *) self)->otype;
+ return (Py_hash_t) ((PyDiaObjectType *) self)->otype;
}
diff --git a/plug-ins/python/pydia-paperinfo.c b/plug-ins/python/pydia-paperinfo.c
index de3812560..ba7b58080 100644
--- a/plug-ins/python/pydia-paperinfo.c
+++ b/plug-ins/python/pydia-paperinfo.c
@@ -100,10 +100,10 @@ PyDiaPaperinfo_Compare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaPaperinfo_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-properties.c b/plug-ins/python/pydia-properties.c
index d406a02a1..dbe6da254 100644
--- a/plug-ins/python/pydia-properties.c
+++ b/plug-ins/python/pydia-properties.c
@@ -70,10 +70,10 @@ PyDiaProperties_RichCompare (PyObject *self,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaProperties_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-property.c b/plug-ins/python/pydia-property.c
index d2f1f559b..7fdd180c6 100644
--- a/plug-ins/python/pydia-property.c
+++ b/plug-ins/python/pydia-property.c
@@ -119,10 +119,10 @@ PyDiaProperty_RichCompare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaProperty_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
diff --git a/plug-ins/python/pydia-sheet.c b/plug-ins/python/pydia-sheet.c
index 6f544f841..45712d3ea 100644
--- a/plug-ins/python/pydia-sheet.c
+++ b/plug-ins/python/pydia-sheet.c
@@ -53,10 +53,10 @@ PyDiaSheet_RichCompare (PyObject *self, PyObject *other, int op)
}
-static long
+static Py_hash_t
PyDiaSheet_Hash (PyObject *self)
{
- return (long) ((PyDiaSheet *) self)->sheet;
+ return (Py_hash_t) ((PyDiaSheet *) self)->sheet;
}
diff --git a/plug-ins/python/pydia-text.c b/plug-ins/python/pydia-text.c
index fee2394ed..666b10e07 100644
--- a/plug-ins/python/pydia-text.c
+++ b/plug-ins/python/pydia-text.c
@@ -106,10 +106,10 @@ PyDiaText_RichCompare (PyObject *a,
/*
* Hash
*/
-static long
+static Py_hash_t
PyDiaText_Hash (PyObject *self)
{
- return (long) self;
+ return (Py_hash_t) self;
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]