Remove __cdecl__ calling convention for [-Werror,-Wignored-attributes]
authorGeunsik Lim <geunsik.lim@samsung.com>
Wed, 16 Mar 2016 07:33:25 +0000 (16:33 +0900)
committerGeunsik Lim <geunsik.lim@samsung.com>
Wed, 16 Mar 2016 07:33:25 +0000 (16:33 +0900)
The cross build for Linux/ARM is broken while doing the compilation
by the [-Werror,-Wignored-attributes] policy of the cross compiler.
Let's remove __cdecl__ calling convention from ./test/src/Interop folder
by handling __cdecl macro handling in xplatform.h for Linux/ARM.

Signed-off-by: Geunsik Lim geunsik.lim@samsung.com
Signed-off-by: Prajwal A N an.prajwal@samsung.com
Signed-off-by: MyungJoo Ham myungjoo.ham@samsung.com
src/pal/tests/palsuite/exception_handling/pal_sxs/test1/exceptionsxs.cpp
tests/src/Interop/common/xplatform.h

index 19a2412623ee442e02e6a30ad1980cd36e19eea3..2d9d0b53e58fc12798b06ef7170aee7c82e93217 100644 (file)
@@ -71,7 +71,7 @@ void sigsegv_handler(int code, siginfo_t *siginfo, void *context)
 
 #endif
 
-int __cdecl main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
 #if !defined(__FreeBSD__) && !defined(__NetBSD__)
     struct sigaction newAction;
index b498d0108bfcdb17b31eb2ca236c4ab20e81422d..703fe32f267e43be6e334f6396affe6c33b9a563 100644 (file)
 #if __i386__
 #define __stdcall __attribute__((stdcall))
 #define _cdecl __attribute__((cdecl))
+#define __cdecl __attribute__((cdecl))
 #else
 #define __stdcall
 #define _cdecl
+#define __cdecl
 #endif
 #endif