File tree Expand file tree Collapse file tree 5 files changed +12
-14
lines changed Expand file tree Collapse file tree 5 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ ENDIF()
36
36
37
37
# Turn on Werror (warning => error) when using maintainer mode.
38
38
IF (MYSQL_MAINTAINER_MODE MATCHES "ON" )
39
- SET (MY_C_WARNING_FLAGS "${MY_C_WARNING_FLAGS} -Werror" )
40
- SET (MY_CXX_WARNING_FLAGS "${MY_CXX_WARNING_FLAGS} -Werror" )
39
+ SET (MY_C_WARNING_FLAGS "${MY_C_WARNING_FLAGS} -DFORCE_INIT_OF_VARS - Werror" )
40
+ SET (MY_CXX_WARNING_FLAGS "${MY_CXX_WARNING_FLAGS} -DFORCE_INIT_OF_VARS - Werror" )
41
41
ENDIF ()
42
42
43
43
# Set warning flags for GCC/Clang
Original file line number Diff line number Diff line change @@ -729,33 +729,36 @@ my_context_continue(struct my_context *c)
729
729
730
730
#ifdef MY_CONTEXT_DISABLE
731
731
int
732
- my_context_continue (struct my_context * c )
732
+ my_context_continue (struct my_context * c __attribute__(( unused )) )
733
733
{
734
734
return -1 ;
735
735
}
736
736
737
737
738
738
int
739
- my_context_spawn (struct my_context * c , void (* f )(void * ), void * d )
739
+ my_context_spawn (struct my_context * c __attribute__((unused )),
740
+ void (* f )(void * ) __attribute__((unused )),
741
+ void * d __attribute__((unused )))
740
742
{
741
743
return -1 ;
742
744
}
743
745
744
746
745
747
int
746
- my_context_yield (struct my_context * c )
748
+ my_context_yield (struct my_context * c __attribute__(( unused )) )
747
749
{
748
750
return -1 ;
749
751
}
750
752
751
753
int
752
- my_context_init (struct my_context * c , size_t stack_size )
754
+ my_context_init (struct my_context * c __attribute__((unused )),
755
+ size_t stack_size __attribute__((unused )))
753
756
{
754
757
return -1 ; /* Out of memory */
755
758
}
756
759
757
760
void
758
- my_context_destroy (struct my_context * c )
761
+ my_context_destroy (struct my_context * c __attribute__(( unused )) )
759
762
{
760
763
}
761
764
Original file line number Diff line number Diff line change 28
28
There is no reference counting and no unloading either.
29
29
*/
30
30
31
- #if _MSC_VER
32
- /* Silence warnings about variable 'unused' being used. */
33
- #define FORCE_INIT_OF_VARS 1
34
- #endif
35
-
36
31
#include <my_global.h>
37
32
#include "mysql.h"
38
33
#include <my_sys.h>
Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ recalculated
1139
1139
*/
1140
1140
#define DICT_TABLE_CHANGED_TOO_MUCH (t ) \
1141
1141
((ib_int64_t) (t)->stat_modified_counter > (srv_stats_modified_counter ? \
1142
- ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
1142
+ (ib_int64_t) ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
1143
1143
16 + (t)->stat_n_rows / 16))
1144
1144
1145
1145
/*********************************************************************/ /**
Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ recalculated
1139
1139
*/
1140
1140
#define DICT_TABLE_CHANGED_TOO_MUCH (t ) \
1141
1141
((ib_int64_t) (t)->stat_modified_counter > (srv_stats_modified_counter ? \
1142
- ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
1142
+ (ib_int64_t) ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
1143
1143
16 + (t)->stat_n_rows / 16))
1144
1144
1145
1145
/*********************************************************************/ /**
You can’t perform that action at this time.
0 commit comments