Skip to content
Browse files

fix some warnings

  • Loading branch information...
1 parent 23d2a2b commit 422242c7ebc29a8ce74c60567401d48709ae18f6 @tmm1 tmm1 committed Apr 24, 2010
Showing with 8 additions and 1 deletion.
  1. +4 −0 ext/json.c
  2. +3 −1 ext/memprof.c
  3. +1 −0 ext/tracer.c
View
4 ext/json.c
@@ -1,3 +1,7 @@
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include "json.h"
#include <assert.h>
#include <string.h>
View
4 ext/memprof.c
@@ -452,6 +452,8 @@ memprof_trace_filename_set(int argc, VALUE *argv, VALUE self)
tracing_json_gen = json_for_args(argc, argv);
tracing_json_filename = *argv;
}
+
+ return tracing_json_filename;
}
static VALUE
@@ -1554,7 +1556,7 @@ objs_each_dump(st_data_t key, st_data_t record, st_data_t arg)
static VALUE
memprof_dump(int argc, VALUE *argv, VALUE self)
{
- VALUE str, ret = Qnil;
+ VALUE ret = Qnil;
int old = track_objs;
if (rb_block_given_p()) {
View
1 ext/tracer.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/time.h>
#include <time.h>
#include "json.h"

0 comments on commit 422242c

Please sign in to comment.
Something went wrong with that request. Please try again.