[gjs] Fix two compiler warnings
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Fix two compiler warnings
- Date: Thu, 3 Feb 2011 21:28:30 +0000 (UTC)
commit 8fad2e29fd4739cb2f80466bf9c189b55b888231
Author: Colin Walters <walters verbum org>
Date: Thu Feb 3 16:20:16 2011 -0500
Fix two compiler warnings
gi/enumeration.c | 4 ++--
gjs/jsapi-util.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gi/enumeration.c b/gi/enumeration.c
index fadb046..cda00a5 100644
--- a/gi/enumeration.c
+++ b/gi/enumeration.c
@@ -91,8 +91,8 @@ gjs_define_enum_value(JSContext *context,
fixed_name, value_js,
NULL, NULL,
GJS_MODULE_PROP_FLAGS)) {
- gjs_throw(context, "Unable to define enumeration value %s %d (no memory most likely)",
- fixed_name, value_val);
+ gjs_throw(context, "Unable to define enumeration value %s %" G_GINT64_FORMAT " (no memory most likely)",
+ fixed_name, value_val);
g_free(fixed_name);
return JS_FALSE;
}
diff --git a/gjs/jsapi-util.c b/gjs/jsapi-util.c
index e038762..c04712c 100644
--- a/gjs/jsapi-util.c
+++ b/gjs/jsapi-util.c
@@ -33,6 +33,7 @@
#include "jsapi-private.h"
#include <string.h>
+#include <math.h>
GQuark
gjs_util_error_quark (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]