prometheus-client-mmap 0.7.0.beta31 → 0.7.0.beta32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e30cce5a536c75e237464f432aaa103efd53f9af
4
- data.tar.gz: c9d27972e59162b19c9b4a71a7d35ea4c1fc849b
3
+ metadata.gz: 668eeb5bd066bb7495b10016c900f346c5826ffb
4
+ data.tar.gz: 9598055345b26e3d67bcaa251353740b456ca061
5
5
  SHA512:
6
- metadata.gz: ce6c424d737eb6b5863008e5a08be2a4172ea1df4fad9eae3246746b90503b849079b77025bc2401895686580c63b7b17e64b760f51189b12b8f0b054c45c79b
7
- data.tar.gz: bc6977b2f00f9b0a047cdf0c38c72018cde0e1682e07070d356ee4e7385e710881cd243be6978c8738cb69851635e7bdfb97b137691fdfdf2ea81ec1a500f0a6
6
+ metadata.gz: 9c925441a2a99af473762ba79e83cff1ef109b1e3445726b75b1fe72fc66ceb1072cae5efd89a3eca93b95a43cfba7db8147da53bd938d5a9b734addab2bdd13
7
+ data.tar.gz: 0adac7c568db0af448674d293dc95b3b44ac20c3ade3ebc5b477e82a0ef5522cff96696dab1f060c1a9122d3f67ab8c685ab40bbbfcf6fecbf02ab7724db19e9
@@ -7,6 +7,15 @@
7
7
 
8
8
  #include "mmap.h"
9
9
 
10
+ #ifdef UNUSED
11
+ #elif defined(__GNUC__)
12
+ #define UNUSED(x) UNUSED_ ## x __attribute__((unused))
13
+ #elif defined(__LCLINT__)
14
+ #define UNUSED(x) /*@unused@*/ x
15
+ #else
16
+ #define UNUSED(x) x
17
+ #endif
18
+
10
19
  VALUE MMAPED_FILE = Qnil;
11
20
 
12
21
  #define START_POSITION 8
@@ -184,16 +193,14 @@ VALUE fast_json_parse(char* json, size_t json_size){
184
193
  }
185
194
 
186
195
 
187
- VALUE method_fast_json_parse(VALUE self, VALUE source){
196
+ VALUE method_fast_json_parse(VALUE UNUSED(self), VALUE source){
188
197
  Check_Type(source, T_STRING);
189
- NIL_P(self);
190
198
 
191
199
  return fast_json_parse(StringValuePtr(source), RSTRING_LEN(source));
192
200
  }
193
201
 
194
- VALUE method_fast_entries(VALUE self, VALUE _data){
202
+ VALUE method_fast_entries(VALUE UNUSED(self), VALUE _data){
195
203
  Check_Type(_data, T_STRING);
196
- NIL_P(self);
197
204
 
198
205
  char *data = StringValuePtr(_data);
199
206
  uint64_t data_len = RSTRING_LEN(_data);
Binary file
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.7.0.beta31'.freeze
3
+ VERSION = '0.7.0.beta32'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-client-mmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta31
4
+ version: 0.7.0.beta32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt