mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
85da8956e6
Add -Wall to gcc/g++ Fix most warnings reported in dbg and opt mode. cmd-line-utils/libedit/filecomplete.c: Remove unused auto variables. configure.cmake: Add -Wall to gcc. extra/comp_err.c: Cast to correct type. extra/perror.c: Fix segfault (but warnings about deprecated features remain) extra/yassl/taocrypt/include/runtime.hpp: Comparing two literals was reported as undefined behaviour. include/my_global.h: Add a template for aligning character buffers. mysys/lf_alloc-pin.c: Initialize pointer. sql/mysqld.cc: Use UNINIT_VAR rather than LINT_INIT. sql/partition_info.cc: Use UNINIT_VAR rather than LINT_INIT. sql/rpl_handler.cc: Use char[] rather than unsigned long[] array for placement buffer. sql/spatial.cc: Use char[] rather than unsigned void*[] array for placement buffer. sql/spatial.h: Use char[] rather than unsigned void*[] array for placement buffer. sql/sql_partition.cc: Initialize auto variable. sql/sql_table.cc: Initialize auto variables. Add parens around assignment within if() sql/sys_vars.cc: Use UNINIT_VAR. storage/innobase/os/os0file.c: Init first slot in auto variable. storage/myisam/mi_create.c: Use UNINIT_VAR rather than LINT_INIT. storage/myisam/mi_open.c: Remove (wrong) casting. storage/myisam/mi_page.c: Remove (wrong) casting. storage/myisam/mi_search.c: Cast to uchar* rather than char*. strings/ctype-ucs2.c: Use UNINIT_VAR rather than LINT_INIT. Add (uchar*) casting. |
||
---|---|---|
.. | ||
np | ||
readline | ||
chared.c | ||
chared.h | ||
CMakeLists.txt | ||
common.c | ||
config.h | ||
el.c | ||
el.h | ||
el_term.h | ||
emacs.c | ||
filecomplete.c | ||
filecomplete.h | ||
hist.c | ||
hist.h | ||
histedit.h | ||
history.c | ||
key.c | ||
key.h | ||
Makefile.am | ||
makelist.sh | ||
map.c | ||
map.h | ||
parse.c | ||
parse.h | ||
prompt.c | ||
prompt.h | ||
read.c | ||
read.h | ||
readline.c | ||
README | ||
refresh.c | ||
refresh.h | ||
search.c | ||
search.h | ||
sig.c | ||
sig.h | ||
sys.h | ||
term.c | ||
tokenizer.c | ||
tty.c | ||
tty.h | ||
vi.c |
An approximate method to merge from upstream is: # Fetch latest from upstream (we also include some compat stuff) $ CVS_RSH=ssh; export CVS_RSH $ CVSROOT="anoncvs@stripped:/cvsroot" $ cvs co -d libedit -P src/lib/libedit $ mkdir libedit/np $ for f in src/common/lib/libc/string/strlcat.c \ > src/common/lib/libc/string/strlcpy.c \ > src/include/vis.h \ > src/lib/libc/gen/unvis.c \ > src/lib/libc/gen/vis.c \ > src/tools/compat/fgetln.c > do > cvs co -P ${f} > mv ${f} libedit/np > done $ rm -rf src $ cd libedit # Remove files we don't need/use $ rm -rf CVS TEST Makefile shlib_version *.[0-9] $ (cd readline; rm -rf CVS Makefile) # Rename files to match our naming $ mv makelist makelist.sh $ mv term.h el_term.h # Remove NetBSD-specific bits $ for file in $(find . -type f) > do > cp ${file} ${file}.orig > sed -e 's/#include "term.h"/#include "el_term.h"/g' \ > -e 's/sig_handler/el_sig_handler/g' \ > -e 's/isprint/el_isprint/g' \ > -e '/^__RCSID/d' \ > ${file}.orig >${file} > rm ${file}.orig > done then merge remaining bits by hand. All MySQL-specific changes should be marked with XXXMYSQL to make them easier to identify and merge. To generate a 'clean' diff against upstream you can use the above commands but use cvs co -D "2009/02/06 20:09:00" [..] to fetch the baseline of most recent merge. Please feed any fixes to Jonathan Perkin <jperkin@stripped> who will endeavour to merge them upstream and keep diffs minimal.