skylight 7.1.0 → 7.1.1

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
  SHA256:
3
- metadata.gz: 774c7246629b4496c5856c89f79c06d8f41bcbb3e57f674facc3a9dbaec02247
4
- data.tar.gz: a3a0a2e50567c145b00bdcef640b9812856a2c30099c618b19c7cbbf46018432
3
+ metadata.gz: fb1aa9e97569dad5f875188d9b9950ce95e2f760cecbf47e56d1a111a3bb3d4b
4
+ data.tar.gz: 077b6c9517691116e216022f9f5e810edc7173c262a66d99446b49341efbe51a
5
5
  SHA512:
6
- metadata.gz: 897f0dbcb877701b768a18060af7b35fb691a61bb464f6dbda10ff773c5a0b0e701a341a6adaaf1b66594cef803198e66d9f609bba1c57bbcc88dfd4f430e701
7
- data.tar.gz: dda53c4b01214548fd9ecdfd708eb6629a7970d74b2fadcf0be1e63d332b3d04c3d0835197cb31c5d6a422457d6f0971cb53cb9973ee97188e989d516dc5aab4
6
+ metadata.gz: 28a23bdc8e24bd10150a23d917bb669cdebfafb5422046f9c1fe7c0aebee7a12e2f31ca8aee12430e50e32956ef54581b63481f81616fdcf2edecf41ab86ddc2
7
+ data.tar.gz: c41a8135ee576517a9f1f4f096fc9bb30f024e45e1918a3c19ca21e480f21b9ddecba70527734a660fe9723bc25feffcaae605bc0966d4d19a488b308d66166b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 7.1.1 (April 17, 2026)
2
+ - BUGFIX Fix native extension build on GCC 15 by using `append_cflags` instead of mutating `$CFLAGS` directly.
3
+ - BUGFIX Replace K&R-style empty parameter lists (`()`) with `(void)` in C sources to build cleanly under Fedora's `-Werror=old-style-definition`.
4
+
1
5
  ## 7.1.0 (January 20, 2025)
2
6
  - BREAKING end support for Rails < 7.2.
3
7
  - IMPROVEMENT better support for Grape 3.x
data/ext/extconf.rb CHANGED
@@ -228,7 +228,7 @@ end
228
228
  # flag can cause issues for some customers we're turning it off by default. However,
229
229
  # in development and CI, we still have the option of turning it back on to help catch
230
230
  # potential issues.
231
- $CFLAGS << " -Werror" if SKYLIGHT_EXT_STRICT
231
+ append_cflags(["-Werror"]) if SKYLIGHT_EXT_STRICT
232
232
 
233
233
  checking_for "fast thread local storage" do
234
234
  if try_compile("__thread int foo;")
@@ -238,15 +238,15 @@ checking_for "fast thread local storage" do
238
238
  end
239
239
 
240
240
  # Flag -std=c99 required for older build systems
241
- $CFLAGS << " -std=c99 -Wall -fno-strict-aliasing"
241
+ append_cflags(["-std=c99", "-Wall", "-fno-strict-aliasing"])
242
242
 
243
243
  # Allow stricter checks to be turned on for development or debugging
244
244
  if SKYLIGHT_EXT_STRICT
245
- $CFLAGS << " -Wextra"
245
+ append_cflags(["-Wextra"])
246
246
 
247
247
  # Enabling unused-parameter causes failures in Ruby 2.6+
248
248
  # ruby/ruby.h:2186:35: error: unused parameter 'allow_transient'
249
- $CFLAGS << " -Wno-error=unused-parameter"
249
+ append_cflags(["-Wno-error=unused-parameter"])
250
250
  end
251
251
 
252
252
  # TODO: Compute the relative path to the location
@@ -12,7 +12,7 @@ typedef struct {
12
12
  // Use the __thread directive
13
13
  static __thread sky_allocations_t sky_allocations;
14
14
 
15
- static inline sky_allocations_t* get_allocations() {
15
+ static inline sky_allocations_t* get_allocations(void) {
16
16
  return &sky_allocations;
17
17
  }
18
18
 
@@ -25,11 +25,11 @@ static pthread_key_t ALLOCATIONS_KEY;
25
25
 
26
26
  static pthread_once_t KEY_INIT_ONCE = PTHREAD_ONCE_INIT;
27
27
 
28
- static void init_allocations_key() {
28
+ static void init_allocations_key(void) {
29
29
  pthread_key_create(&ALLOCATIONS_KEY, free);
30
30
  }
31
31
 
32
- static sky_allocations_t* get_allocations() {
32
+ static sky_allocations_t* get_allocations(void) {
33
33
  sky_allocations_t* ret;
34
34
 
35
35
  // Initialize the TLS key
@@ -69,7 +69,7 @@ uint64_t sky_allocation_count(void) {
69
69
  return get_allocations()->allocations;
70
70
  }
71
71
 
72
- uint64_t sky_consume_allocations() {
72
+ uint64_t sky_consume_allocations(void) {
73
73
  uint64_t ret = get_allocations()->allocations;
74
74
  sky_clear_allocation_count();
75
75
  return ret;
@@ -100,7 +100,7 @@ uint64_t sky_allocation_count(void) {
100
100
  return 0;
101
101
  }
102
102
 
103
- uint64_t sky_consume_allocations() {
103
+ uint64_t sky_consume_allocations(void) {
104
104
  return 0;
105
105
  }
106
106
 
@@ -553,7 +553,7 @@ trace_span_set_exception(VALUE self, VALUE span, VALUE exception, VALUE exceptio
553
553
  return Qnil;
554
554
  }
555
555
 
556
- void Init_skylight_native() {
556
+ void Init_skylight_native(void) {
557
557
  rb_mSkylight = rb_define_module("Skylight");
558
558
 
559
559
  rb_eNativeError = rb_const_get(rb_mSkylight, rb_intern("NativeError"));
@@ -3,5 +3,5 @@ module Skylight
3
3
  # for compatibility with semver when it is parsed by the rust agent.
4
4
  # This string will be transformed in the gemspec to "5.0.0.alpha"
5
5
  # to conform with rubygems.
6
- VERSION = "7.1.0".freeze
6
+ VERSION = "7.1.1".freeze
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.