Skip to content

Commit dbb6520

Browse files
hujiajieMylesBorins
authored andcommitted
buffer: remove a wrongly added attribute specifier
It doesn't seem to make much sense to have the mentioned typedef declaration equipped with NODE_EXTERN. In fact, when compiling with GCC, an attribute specifier like __attribute__((visibility("default"))) in such a typedef declaration will cause the following warning message: warning: ‘visibility’ attribute ignored [-Wattributes] The issue goes unnoticed because NODE_EXTERN is defined as nothing for GCC builds, but for correctness it's better to not specify it here at all. PR-URL: #14466 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 1a88c3e commit dbb6520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_buffer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Buffer {
1313
static const unsigned int kMaxLength =
1414
sizeof(int32_t) == sizeof(intptr_t) ? 0x3fffffff : 0x7fffffff;
1515

16-
NODE_EXTERN typedef void (*FreeCallback)(char* data, void* hint);
16+
typedef void (*FreeCallback)(char* data, void* hint);
1717

1818
NODE_EXTERN bool HasInstance(v8::Local<v8::Value> val);
1919
NODE_EXTERN bool HasInstance(v8::Local<v8::Object> val);

0 commit comments

Comments
 (0)