Skip to content

Commit f6aab6d

Browse files
Internal Code Change
PiperOrigin-RevId: 889816903
1 parent 555360e commit f6aab6d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

objectivec/GPBRootObject.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static id ExtensionForName(id self, SEL _cmd) {
154154

155155
const char *className = class_getName(self);
156156
size_t classNameLen = strlen(className);
157-
char key[classNameLen + selNameLen + 2];
157+
char *key = alloca(classNameLen + selNameLen + 2);
158158
memcpy(key, className, classNameLen);
159159
key[classNameLen] = '_';
160160
memcpy(&key[classNameLen + 1], selName, selNameLen);

python/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ py_extension(
111111
copts = UPB_DEFAULT_COPTS + select(LIMITED_API_FLAG_SELECT) + [
112112
# The Python API requires patterns that are ISO C incompatible, like
113113
# casts between function pointers and object pointers.
114-
"-Wno-pedantic",
115114
],
116115
features = UPB_DEFAULT_FEATURES,
117116
target_compatible_with = select(_message_target_compatible_with),

0 commit comments

Comments
 (0)