mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
9a5fa17fd3
Fix warnings flagged by the new warning option -Wunused-but-set-variable that was added to GCC 4.6 and that is enabled by -Wunused and -Wall. The option causes a warning whenever a local variable is assigned to but is later unused. It also warns about meaningless pointer dereferences. client/mysql.cc: Meaningless pointer dereferences. client/mysql_upgrade.c: Check whether reading from the file succeeded. extra/comp_err.c: Unused. extra/yassl/src/yassl_imp.cpp: Skip instead of reading data that is discarded. include/my_pthread.h: Variable is only used in debug builds. include/mysys_err.h: Add new error messages. mysys/errors.c: Add new error message for permission related functions. mysys/mf_iocache.c: Variable is only checked under THREAD. mysys/my_copy.c: Raise a error if chmod or chown fails. mysys/my_redel.c: Raise a error if chmod or chown fails. regex/engine.c: Use a equivalent variable for the assert. server-tools/instance-manager/instance_options.cc: Unused. sql/field.cc: Unused. sql/item.cc: Unused. sql/log.cc: Do not ignore the return value of freopen: only set buffer if reopening succeeds. Adjust doxygen comment to the right function. Pass message lenght to log function. sql/mysqld.cc: Do not ignore the return value of freopen: only set buffer if reopening succeeds. sql/partition_info.cc: Unused. sql/slave.cc: No need to set pointer to the address of '\0'. sql/spatial.cc: Unused. Left for historical purposes. sql/sql_acl.cc: Unused. sql/sql_base.cc: Pointers are always set to the same variables. sql/sql_parse.cc: End statement if reading fails. Store the buffer after it has actually been updated. sql/sql_repl.cc: No need to set pointer to the address of '\0'. sql/sql_show.cc: Put variable under the same ifdef block. sql/udf_example.c: Set null pointer flag appropriately. storage/csv/ha_tina.cc: Meaningless dereferences. storage/example/ha_example.cc: Return the error since it's available. storage/myisam/mi_locking.c: Remove unused and dead code. |
||
---|---|---|
.. | ||
ftbench | ||
.cvsignore | ||
ChangeLog | ||
CMakeLists.txt | ||
ft_boolean_search.c | ||
ft_eval.c | ||
ft_eval.h | ||
ft_nlq_search.c | ||
ft_parser.c | ||
ft_static.c | ||
ft_stem.c | ||
ft_stopwords.c | ||
ft_test1.c | ||
ft_test1.h | ||
ft_update.c | ||
ftdefs.h | ||
fulltext.h | ||
ha_myisam.cc | ||
ha_myisam.h | ||
make-ccc | ||
Makefile.am | ||
mi_cache.c | ||
mi_changed.c | ||
mi_check.c | ||
mi_checksum.c | ||
mi_close.c | ||
mi_create.c | ||
mi_dbug.c | ||
mi_delete.c | ||
mi_delete_all.c | ||
mi_delete_table.c | ||
mi_dynrec.c | ||
mi_extra.c | ||
mi_info.c | ||
mi_key.c | ||
mi_keycache.c | ||
mi_locking.c | ||
mi_log.c | ||
mi_open.c | ||
mi_packrec.c | ||
mi_page.c | ||
mi_panic.c | ||
mi_preload.c | ||
mi_range.c | ||
mi_rename.c | ||
mi_rfirst.c | ||
mi_rkey.c | ||
mi_rlast.c | ||
mi_rnext.c | ||
mi_rnext_same.c | ||
mi_rprev.c | ||
mi_rrnd.c | ||
mi_rsame.c | ||
mi_rsamepos.c | ||
mi_scan.c | ||
mi_search.c | ||
mi_static.c | ||
mi_statrec.c | ||
mi_test1.c | ||
mi_test2.c | ||
mi_test3.c | ||
mi_test_all.res | ||
mi_test_all.sh | ||
mi_unique.c | ||
mi_update.c | ||
mi_write.c | ||
myisam_ftdump.c | ||
myisamchk.c | ||
myisamdef.h | ||
myisamlog.c | ||
myisampack.c | ||
NEWS | ||
plug.in | ||
rt_index.c | ||
rt_index.h | ||
rt_key.c | ||
rt_key.h | ||
rt_mbr.c | ||
rt_mbr.h | ||
rt_split.c | ||
rt_test.c | ||
sort.c | ||
sp_defs.h | ||
sp_key.c | ||
sp_test.c | ||
test_pack | ||
TODO |