google-protobuf 3.22.0.rc.2-x86_64-linux → 3.22.0.rc.3-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25e1ceaa6bae6d36ba7199fa1e1365fc3ff5e8760c9bcd135c04b20271abb809
4
- data.tar.gz: 4243104440c31977c7a1bc5209506e6961b23547127c2271eea644802c7a2d42
3
+ metadata.gz: d94f8b93e55a27a3410fcb82bc31813828c160df232be3f90965e3a305237d64
4
+ data.tar.gz: ef56d43ae3e64562a8857aa97c114daedf0ddf18ffa20010869889969c39284d
5
5
  SHA512:
6
- metadata.gz: a4701ee22a007b216f7050d00fa9fdc6d047568410cfe133ee53d842a35048bf1260f6f506743b0e7b64ee006a826eff0dffa3663d1d27b00d93c04251fe7973
7
- data.tar.gz: 01c92c6e7ebe10bbd0a9b87ea83ae440d9f341b141cce3127182f46bea8fafa2bc6707be337d2fc9b96893561e2306e19764a8b3a3a5bbd10c185edcddb61cb4
6
+ metadata.gz: ea81fdb00939c9daa8e55e113617f2f549f04b8a5663277b9d12cc660069c885f6576d3b65e1bdff2a191cd3771a3fecb60be61e6ad4ed818589c01d2e0acc39
7
+ data.tar.gz: ef23eca5189f357ca1269055d8a2544284727920bae698d3dc9266d89d60cf7d50b2ad3a610130981d47d0bbabecd1cf351f5b09cad9cf0c3729070dec9205ad
@@ -7,19 +7,18 @@ ext_name = "google/protobuf_c"
7
7
  dir_config(ext_name)
8
8
 
9
9
  if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/
10
- $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement -I$(srcdir)/third_party/utf8_range"
10
+ $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
11
11
  else
12
12
  $CFLAGS += " -std=gnu99 -O3 -DNDEBUG"
13
13
  end
14
14
 
15
-
16
15
  if RUBY_PLATFORM =~ /linux/
17
16
  # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper.
18
17
  $LDFLAGS += " -Wl,-wrap,memcpy"
19
18
  end
20
19
 
21
20
  $VPATH << "$(srcdir)/third_party/utf8_range"
22
- $INCFLAGS << "$(srcdir)/third_party/utf8_range"
21
+ $INCFLAGS += " -I$(srcdir)/third_party/utf8_range"
23
22
 
24
23
  $srcs = ["protobuf.c", "convert.c", "defs.c", "message.c",
25
24
  "repeated_field.c", "map.c", "ruby-upb.c", "wrap_memcpy.c",
@@ -243,15 +243,6 @@ static int extract_method_call(VALUE method_name, Message* self,
243
243
  if (Match(m, name, f, o, "clear_", "")) return METHOD_CLEAR;
244
244
  if (Match(m, name, f, o, "has_", "?") &&
245
245
  (*o || (*f && upb_FieldDef_HasPresence(*f)))) {
246
- // Disallow oneof hazzers for proto3.
247
- // TODO(haberman): remove this test when we are enabling oneof hazzers for
248
- // proto3.
249
- if (*f && !upb_FieldDef_IsSubMessage(*f) &&
250
- upb_FieldDef_RealContainingOneof(*f) &&
251
- upb_MessageDef_Syntax(upb_FieldDef_ContainingType(*f)) !=
252
- kUpb_Syntax_Proto2) {
253
- return METHOD_UNKNOWN;
254
- }
255
246
  return METHOD_PRESENCE;
256
247
  }
257
248
  if (Match(m, name, f, o, "", "_as_value") && *f &&
@@ -1287,12 +1278,12 @@ VALUE build_module_from_enumdesc(VALUE _enumdesc) {
1287
1278
  int32_t value = upb_EnumValueDef_Number(ev);
1288
1279
  if (name[0] < 'A' || name[0] > 'Z') {
1289
1280
  if (name[0] >= 'a' && name[0] <= 'z') {
1290
- name[0] -= 32; // auto capitalize
1281
+ name[0] -= 32; // auto capitalize
1291
1282
  } else {
1292
1283
  rb_warn(
1293
- "Enum value '%s' does not start with an uppercase letter "
1294
- "as is required for Ruby constants.",
1295
- name);
1284
+ "Enum value '%s' does not start with an uppercase letter "
1285
+ "as is required for Ruby constants.",
1286
+ name);
1296
1287
  }
1297
1288
  }
1298
1289
  rb_define_const(mod, name, INT2NUM(value));