Commit c6cc1129 authored by lenz@mysql.com's avatar lenz@mysql.com
Browse files

Added an "#ifdef _AIX" around the "#pragma #alloca" in include/my_sys.h

since it is AIX specific only and compilers on other platforms issued
warnings about it.
parent cfc21e2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -164,8 +164,10 @@ extern my_string my_strdup(const char *from,myf MyFlags);
#undef  alloca
#define alloca(size)   __builtin_alloca (size)
#else /* xlc */
#ifdef _AIX
 #pragma alloca
#endif /* GCC.  */
#endif /* _AIX */
#endif /* __GNUC__  */
#define my_alloca(SZ) alloca((size_t) (SZ))
#define my_afree(PTR) {}
#else