summaryrefslogtreecommitdiff
path: root/ext/win32ole/win32ole_error.h
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2020-07-26 16:19:40 +0900
committernagachika <nagachika@ruby-lang.org>2020-07-26 16:19:40 +0900
commit43cc6997c59d2fbe3b91e91ee52faaa8749e9349 (patch)
tree58ae0dd2f415b1177ff4e626dc0be1f22d53185f /ext/win32ole/win32ole_error.h
parent578bacc471fa3fa14f8607fe67adccce21e81657 (diff)
merge revision(s) a0bc3f2a1c2c98f225612101cb4e1ea1a6813546,75a0447c15a7ab017bd4240c2a9cc69b134b80b9,f1699314147bad2cf5550cc582693424fdbc2510: [Backport #16846]
Suppress C4267 "possible loss of data" warnings Suppress C4267 "possible loss of data" warnings Just cast down explicitly. win32ole: separate global variable declarations and definitions https://gcc.gnu.org/gcc-10/changes.html#c > * GCC now defaults to `-fno-common`. As a result, global > variable accesses are more efficient on various targets. In > C, global variables with multiple tentative definitions now > result in linker errors. With `-fcommon` such definitions are > silently merged during linking.
Diffstat (limited to 'ext/win32ole/win32ole_error.h')
-rw-r--r--ext/win32ole/win32ole_error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/win32ole_error.h b/ext/win32ole/win32ole_error.h
index 296eb101ad..a2f329856f 100644
--- a/ext/win32ole/win32ole_error.h
+++ b/ext/win32ole/win32ole_error.h
@@ -1,8 +1,8 @@
#ifndef WIN32OLE_ERROR_H
#define WIN32OLE_ERROR_H 1
-VALUE eWIN32OLERuntimeError;
-VALUE eWIN32OLEQueryInterfaceError;
+extern VALUE eWIN32OLERuntimeError;
+extern VALUE eWIN32OLEQueryInterfaceError;
NORETURN(PRINTF_ARGS(void ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...), 3, 4));
void Init_win32ole_error(void);