Commit 3e9d4541 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6340 Mariadb 10.0.12 fatal "Lost connection" error w/ GCC 4.9 'Release'...

MDEV-6340 Mariadb 10.0.12 fatal "Lost connection" error w/ GCC 4.9 'Release' build; workaround ~ CFLAGS="-fno-delete-null-pointer-checks"

don't use attribute nonnull for arguments that can be null
parent c2536764
...@@ -289,7 +289,7 @@ lock_rec_insert_check_and_lock( ...@@ -289,7 +289,7 @@ lock_rec_insert_check_and_lock(
inserted record maybe should inherit inserted record maybe should inherit
LOCK_GAP type locks from the successor LOCK_GAP type locks from the successor
record */ record */
__attribute__((nonnull, warn_unused_result)); __attribute__((nonnull(2,3,4,6,7), warn_unused_result));
/*********************************************************************//** /*********************************************************************//**
Checks if locks of other transactions prevent an immediate modify (update, Checks if locks of other transactions prevent an immediate modify (update,
delete mark, or delete unmark) of a clustered index record. If they do, delete mark, or delete unmark) of a clustered index record. If they do,
......
...@@ -291,7 +291,7 @@ lock_rec_insert_check_and_lock( ...@@ -291,7 +291,7 @@ lock_rec_insert_check_and_lock(
inserted record maybe should inherit inserted record maybe should inherit
LOCK_GAP type locks from the successor LOCK_GAP type locks from the successor
record */ record */
__attribute__((nonnull, warn_unused_result)); __attribute__((nonnull(2,3,4,6,7), warn_unused_result));
/*********************************************************************//** /*********************************************************************//**
Checks if locks of other transactions prevent an immediate modify (update, Checks if locks of other transactions prevent an immediate modify (update,
delete mark, or delete unmark) of a clustered index record. If they do, delete mark, or delete unmark) of a clustered index record. If they do,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment