1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Bug#45288: pb2 returns a lot of compilation warnings on linux

Fix assorted compiler warnings.
This commit is contained in:
Davi Arnaut
2010-10-08 11:52:39 -03:00
parent c57244fb17
commit 31e1b12eb0
4 changed files with 6 additions and 7 deletions

View File

@@ -3244,12 +3244,11 @@ static int init_common_variables()
desired page sizes. desired page sizes.
*/ */
int nelem; int nelem;
int max_desired_page_size; size_t max_desired_page_size;
int max_page_size;
if (opt_super_large_pages) if (opt_super_large_pages)
max_page_size= SUPER_LARGE_PAGESIZE; max_desired_page_size= SUPER_LARGE_PAGESIZE;
else else
max_page_size= LARGE_PAGESIZE; max_desired_page_size= LARGE_PAGESIZE;
nelem = getpagesizes(NULL, 0); nelem = getpagesizes(NULL, 0);
if (nelem > 0) if (nelem > 0)
{ {

View File

@@ -43,7 +43,7 @@ typedef enum {
IBUF_OP_DELETE = 2, IBUF_OP_DELETE = 2,
/* Number of different operation types. */ /* Number of different operation types. */
IBUF_OP_COUNT = 3, IBUF_OP_COUNT = 3
} ibuf_op_t; } ibuf_op_t;
/** Combinations of operations that can be buffered. Because the enum /** Combinations of operations that can be buffered. Because the enum

View File

@@ -267,7 +267,7 @@ enum row_search_result {
secondary index leaf page was not in secondary index leaf page was not in
the buffer pool, and the operation was the buffer pool, and the operation was
enqueued in the insert/delete buffer */ 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 */ row_purge_poss_sec() failed */
}; };

View File

@@ -513,7 +513,7 @@ start:
arg_count= max(arg_count, arg_index); arg_count= max(arg_count, arg_index);
goto start; goto start;
} }
DBUG_ASSERT(0);
return 0; return 0;
} }