mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#45288: pb2 returns a lot of compilation warnings on linux
Fix assorted compiler warnings.
This commit is contained in:
@ -3244,12 +3244,11 @@ static int init_common_variables()
|
||||
desired page sizes.
|
||||
*/
|
||||
int nelem;
|
||||
int max_desired_page_size;
|
||||
int max_page_size;
|
||||
size_t max_desired_page_size;
|
||||
if (opt_super_large_pages)
|
||||
max_page_size= SUPER_LARGE_PAGESIZE;
|
||||
max_desired_page_size= SUPER_LARGE_PAGESIZE;
|
||||
else
|
||||
max_page_size= LARGE_PAGESIZE;
|
||||
max_desired_page_size= LARGE_PAGESIZE;
|
||||
nelem = getpagesizes(NULL, 0);
|
||||
if (nelem > 0)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ typedef enum {
|
||||
IBUF_OP_DELETE = 2,
|
||||
|
||||
/* Number of different operation types. */
|
||||
IBUF_OP_COUNT = 3,
|
||||
IBUF_OP_COUNT = 3
|
||||
} ibuf_op_t;
|
||||
|
||||
/** Combinations of operations that can be buffered. Because the enum
|
||||
|
@ -267,7 +267,7 @@ enum row_search_result {
|
||||
secondary index leaf page was not in
|
||||
the buffer pool, and the operation was
|
||||
enqueued in the insert/delete buffer */
|
||||
ROW_NOT_DELETED_REF, /*!< BTR_DELETE was specified, and
|
||||
ROW_NOT_DELETED_REF /*!< BTR_DELETE was specified, and
|
||||
row_purge_poss_sec() failed */
|
||||
};
|
||||
|
||||
|
@ -513,7 +513,7 @@ start:
|
||||
arg_count= max(arg_count, arg_index);
|
||||
goto start;
|
||||
}
|
||||
DBUG_ASSERT(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user