mirror of https://github.com/MariaDB/server
Browse Source
strmake_buf() macro should only be used with char[] arrays, and never with char* pointers. To distinguish between the two we create a new variable of the same type and initialize it using array initializer, this causes compilation failure with pointers. The variable is unused and will be removed by the compiler. It's enough to do this check only with gcc, so it doesn't have to be portable.pull/508/merge
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue