1#
2# This file contains compiler warnings that can
3# be ignored for various reasons.
4#
5
6.*/integer.cpp: .*control reaches end of non-void function.*: 1288-1427
7.*/integer.cpp: .*no return statement in function returning non-void.*: 1288-1427
8.*/DictTabInfo.cpp : .*invalid access to non-static.*
9.*/DictTabInfo.cpp : .*macro was used incorrectly.*
10.*/DbdihMain.cpp : .*unused variable.* : 6666-7013
11.*/DbtupExecQuery.cpp : .*unused variable.* : 1823
12.*/kernel_types.h : .*only defines private constructors and has no friends.* : 51
13.*/Dbtup.hpp:   .*only defines private constructors and has no friends.*
14.*/diskpage.hpp:   .*only defines private constructors and has no friends.*
15.*/tuppage.hpp:   .*only defines private constructors and has no friends.*
16.*/sql_yacc.cc : .*label 'yyerrlab1' defined but not used.*
17.*/kernel_types.h : .*'struct Local_key' only defines private constructors and has no friends.*
18.*/lgman.hpp : .*'struct Lgman::Buffer_idx' only defines private constructors and has no friends.*
19.*/SchemaFile.hpp : .*'struct SchemaFile::TableEntry' only defines private constructors and has no friends.*
20.*/sql_yacc.cc : .*switch statement contains 'default' but no 'case' labels.*
21
22#
23# bdb is not critical to keep up to date
24#
25.*/bdb/.* : .*discards qualifiers from pointer target type.*
26.*/bdb/.* : .*unused parameter.*
27.*/bdb/.* : .*may be used uninitialized.*
28.*/bdb/.* : .*empty body in an if-statement.*
29.*/db_vrfy.c : .*comparison is always false due to limited range of data type.*
30
31#
32# readline is not maintained by us
33#
34.*/cmd-line-utils/readline/.* : .*
35.*/readline\.c : unused parameter
36.*/term\.c : unused parameter
37.*/vi\.c : unused parameter
38.*/common\.c : unused parameter
39.*/term\.c : .*
40
41#
42# Ignore some warnings in libevent, which is not maintained by us.
43#
44.*/extra/libevent/.* : .*unused parameter.*
45.*/extra/libevent/select\.c : .*comparison between signed and unsigned.* : 270-280
46.*/signal\.c : .*unused parameter.*
47
48#
49# Ignore warnings from system libraries
50#
51.*/aclocal/audiofile.m4 : .*
52
53#
54# Ignore strict-aliasing warnings (for now)
55#
56.*: break strict-aliasing rules
57
58#
59# Ignore not important declaration warnings
60#
61.*: only defines private constructors and has no friends
62
63#
64# Ignore all conversion warnings on windows 64
65# (Is safe as we are not yet supporting strings >= 2G)
66#
67.* : conversion from '__int64' to .*int'.*
68.* : conversion from '__int64' to 'uint8'.*
69.* : conversion from '__int64' to 'uint32'.*
70.* : conversion from '__int64' to 'u.*long'.*
71.* : conversion from '__int64' to 'long'.*
72.* : conversion from '__int64' to 'off_t'.*
73.* : conversion from '.*size_t' to .*int'.*
74.* : conversion from '.*size_t' to 'TaoCrypt::word32'.*
75.* : conversion from '.*size_t' to 'u.*long'.*
76.* : conversion from '.*size_t' to 'uint32'.*
77.* : conversion from '.*size_t' to 'off_t'.*
78.* : conversion from '.*size_t' to 'size_s'.*
79.* : conversion from '.*size_t' to 'DWORD'.*
80.* : conversion from '.*size_t' to 'uLongf'.*
81.* : conversion from '.*size_t' to 'UINT'.*
82.* : conversion from '.*size_t' to 'uInt'.*
83.* : conversion from '.*size_t' to 'uint16'.*
84.* : The following environment variables were not found.*
85.* : no public symbols found; archive member will be inaccessible
86.* : DESCRIPTION statement not supported
87
88# Ignore uninitialized local variables on windows
89.* : uninitialized local variable .* used
90
91#
92# Aria warning that is ok in debug builds
93#
94.*/storage/maria/ma_pagecache.c: .*'info_check_pin' defined but not used
95
96#
97# oqgraph errors that are hard to fix
98#
99.*/oqgraph/graphcore\.cc : may be used uninitialized in this function
100
101#
102# Yassl
103#
104.*/include/runtime.hpp: .*pure_error.*
105.*/extra/yassl/.*taocrypt/.*: comparison with string literal
106.*/extra/yassl/taocrypt/src/blowfish\.cpp: array subscript is above array bounds
107.*/extra/yassl/taocrypt/src/file\.cpp: ignoring return value
108.*/extra/yassl/taocrypt/src/integer\.cpp: control reaches end of non-void function
109.*/mySTL/algorithm\.hpp: is used uninitialized in this function
110.*/include/pwdbased\.hpp: comparison of unsigned expression
111
112#
113# OpenSSL
114#
115# The following comes because of different prototype between yassl and openssl.
116# Save as the argument is a function within the library.
117.*/vio/viosslfactories\.c: discards ~const~ qualifier from pointer target type
118
119#
120# Groff warnings on OpenSUSE.
121#
122.*/dbug/.*(groff|<standard input>) : .*
123.*groff.* : vertical spacing must be greater than
124
125#
126# Warnings on OpenSolaris
127#
128.*/my_config\.h : _FILE_OFFSET_BITS
129.*/include/sys/feature_tests.h : this is the location of the previous definition
130.*/auth_pam\.c : initialization from incompatible pointer type : 100-200
131.*/mysys/my_lock\.c : incompatible pointer
132
133#
134# jemalloc
135#
136.*/jemalloc/src/jemalloc\.c: always_inline function might not be inlinable
137.*/jemalloc/src/jemalloc\.c: set but not used
138
139#
140# Connect engine
141#
142.*/storage/connect/ha_connect\.cc: might be clobbered by.*longjmp
143.*/storage/connect/connect\.cc: might be clobbered by.*longjmp
144.*/storage/connect/filamvct\.cpp: ignoring return value of
145.*/storage/connect/filamvct\.cpp: might be clobbered by
146.*/storage/connect/xindex\.cpp: ignoring return value of
147.*/storage/connect/value\.cpp: always false : 1000-1020
148.*/storage/connect/json\.cpp: might be clobbered by
149.*/storage/connect/filemdbf\.cpp: ignoring return value.*fwrite
150.*/storage/connect/value\.cpp: .*comparison is always false due to limited range
151
152#
153# mroonga
154#
155.*/groonga/lib/expr\.c : GCSE disabled
156.*/groonga/lib/expr\.c : NULL pointer checks disabled
157.*/groonga/lib/expr\.c : PRE disabled
158.*/groonga/lib/expr\.c : always false
159.*/groonga/lib/expr\.c : jump bypassing disabled
160.*/groonga/lib/expr\.c : propagation disabled
161.*/groonga/lib/nfkc\.c : GCSE disabled
162.*/groonga/lib/nfkc\.c : NULL pointer checks disabled
163.*/groonga/lib/nfkc\.c : jump bypassing disabled
164.*/groonga/lib/str\.c : comparing floating point
165.*/groonga/lib/db\.c : missing initializer
166.*/groonga/lib/ii\.c : missing initializer
167.*/groonga/lib/normalizer\.c : missing initializer
168.*/groonga/lib/proc\.c : missing initializer
169.*/groonga/lib/tokenizer\.c : missing initializer
170
171#
172# TokuDB
173#
174
175# This one is marked with __attribute__, but we still get a (wrong) warning
176.*/liblzma/lz/lz_encoder\.c : variable.*in_used.*set but not used
177
178#
179# pcre
180#
181.*/pcre/pcre_exec\.c: noclone.*attribute directive ignored
182
183#
184# Unexplanable (?) stuff
185#
186.*/listener\.cc : .*conversion from 'SOCKET' to 'int'.*
187.*/net_serv\.cc : .*conversion from 'SOCKET' to 'int'.*
188
189#
190# Ignorable warnings from header files
191#
192.*/backward_warning\.h : This file includes at least one
193/usr/include/i386-linux-gnu/bits/string3\.h: memset used with constant zero length parameter
194.*/bits/string3.h : might overflow destination buffer
195
196# allow a little moving space for the warning below
197.*/mi_packrec\.c : .*result of 32-bit shift implicitly converted to 64 bits.* : 560-600
198.*/ma_packrec\.c : .*result of 32-bit shift implicitly converted to 64 bits.* : 550-650
199
200#
201# Wrong compiler warnings
202#
203.* : .*no matching operator delete found; memory will not be freed if initialization throws an exception.*
204.*/ctype-simple\.c : .*unary minus operator applied to unsigned type, result still unsigned.*
205.*/sql/sys_vars\.cc : invalid access to non-static data member
206.*/string3\.h : memset used with constant zero length parameter
207.*/sql/wsrep_hton\.cc : NULL used in arithmetic : 500-600
208.* : missing-declarations.*is valid
209
210#
211# Ignorable errors on mac
212#
213.*/my_aes\.c: deprecated
214.*/my_sha1\.cc: deprecated
215.*/my_md5\.cc: deprecated
216.*/my_rnd\.cc: deprecated
217.*/mdl\.cc: invalid access
218.*/mdl\.cc: offsetoff
219
220# Wrong warning due to GCC bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29478
221.*/regexec\.c : passing argument 3 of.*matcher.* discards qualifiers from pointer target type
222.*/libmysql\.c:  passing argument 2 of .*memcpy.* discards qualifiers from pointer target type : 3000-4000
223.*/storage/.*/dict/dict0dict\.c : passing argument 1 of .*strcpy.* discards qualifiers from pointer target type : 2500-3500
224.*/storage/.*/sync/sync0rw\.c : passing argument 1 of .*memset.* discards qualifiers from pointer target type : 200-300
225.*/storage/.*/btr/btr0sea\.c : passing argument 2 of .*btr_cur_position.* discards qualifiers from pointer
226
227# Fixed wrong warning in GCC due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61520
228.*/strings/decimal\.c : array subscript is .* array bounds
229
230#
231# Strange things from autoconf that is probably safe to ignore
232#
233
234.*configure.in : warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
235.*configure.in : config/ac-macros/character_sets.m4.*prefer named diversions warning: File listed twice
236.*/include/mysql/client_plugin\.h : _mysql_client_plugin_declaration_
237.*/plugin/auth_gssapi/client_plugin\.cc: _mysql_client_plugin_declaration_
238