Staale Smedseng
2217de2513
Bug #43414 Parenthesis (and other) warnings compiling MySQL
...
with gcc 4.3.2
This patch fixes a number of GCC warnings about variables used
before initialized. A new macro UNINIT_VAR() is introduced for
use in the variable declaration, and LINT_INIT() usage will be
gradually deprecated. (A workaround is used for g++, pending a
patch for a g++ bug.)
GCC warnings for unused results (attribute warn_unused_result)
for a number of system calls (present at least in later
Ubuntus, where the usual void cast trick doesn't work) are
also fixed.
2009-08-28 17:51:31 +02:00
Staale Smedseng
19dfaa5824
Merge from 5.0-bt
2009-06-29 15:17:01 +02:00
Georgi Kodinov
c6fdeff0c7
Addendum to Bug #45286 : implement reviewer's remarks.
2009-06-05 19:23:44 +03:00
Georgi Kodinov
5db8276fe3
Bug #45286 : compilation warnings on mysql-5.0-bugteam on MacOSX
...
Implemented a way to circumvent the always true comparison by
having nested macros (as suggested on review).
2009-06-05 18:14:56 +03:00
Georgi Kodinov
5ec61b304c
Bug #45286 : compilation warnings on mysql-5.0-bugteam on MacOSX
...
Fixed the 5.0-bugteam MacOSX warnings.
2009-06-05 15:05:26 +03:00
Staale Smedseng
4387f01efd
Bug#42430 Final commit to 5.0-bugteam
2009-04-16 11:40:51 +02:00
kent.boortz@sun.com
677b00faf6
cmd-line-utils/libedit/readline/readline.h
...
- Header <sys/ttydefaults.h> missing or not usable on QNX and OpenServer 6
include/my_global.h
- Moved down definition of function rint(), as for some platforms (in
this case Netware) 'longlong' is not defined until later in
"my_global.h"
2009-03-19 16:40:54 +01:00
kent.boortz@sun.com
e60cecab80
Back patched libedit portability changes from 5.1.32
2009-03-09 22:16:24 +01:00
Georgi Kodinov
1a7b0ec920
fixed a libedit compilation problem
2009-02-10 20:19:03 +02:00
Georgi Kodinov
773b18e69a
From jperkin : Merge libedit 2.11 and related files,
...
based on NetBSD CVS as of 2009/02/06 20:09:00.
2009-02-10 14:39:14 +02:00
antony@pcg5ppc.xiphis.org
9c4e4640ad
Merge pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.0-engines
...
into pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/merge.20080307/mysql-5.0
2008-03-07 13:41:11 -08:00
bar@mysql.com/bar.myoffice.izhnet.ru
640a4d59fd
Bug#23097 mysql can't insert korean on mysql prompt.
...
Problem: libedit is a very pure-ASCII oriented library,
and it is not aware of extended (0x80..0xFF) or even multi-byte
characters. It considered such characters as non-printable
and didn't allow to input them.
Fix: make libedit think that all bytes >= 0x80 are printable.
2008-03-04 16:13:08 +04:00
df@pippilotta.erinye.com
0ac55ddef2
use correct config_readline.h file
2008-01-03 14:26:41 +01:00
df@pippilotta.erinye.com
44ab4b2e7d
Update readline to version 5.2. This fixes bug#18431.
2007-11-19 14:38:08 +01:00
kent@mysql.com/kent-amd64.(none)
2f88dce6ff
Makefile.am:
...
Ensure use of libedit "config.h" by adding "-I. -I$(srcdir)" to DEFS,
work around for problem with automake 1.10 (bug#24809)
2007-10-30 20:54:31 +01:00
kent@mysql.com/kent-amd64.(none)
a9d2569cba
Generate "config.h" directly into the "include" directory, later copied
...
to "my_config.h". Not to pollute the top directory, and to get more control
over what is included. Made the include path for "libedit" pick up its own
"config.h" first.
2007-07-30 21:09:45 +02:00
msvensson@pilot.(none)
7368985cfa
Merge pilot.(none):/data/msvensson/mysql/mysql-4.1-maint
...
into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint
2007-06-07 09:21:33 +02:00
msvensson@pilot.(none)
5df790445a
Bug#10218 Command line recall rolls into Segmentation Fault(coredump)'
...
- Declare 'tgoto' if not already declared in system header files.
2007-06-04 16:42:42 +02:00
jani@ua141d10.elisa.omakaista.fi
bcbc0031eb
Fixed compiler warnings.
2007-02-28 22:23:35 +02:00
monty@mysql.com/narttu.mysql.fi
e5cc397f33
Fixed compiler warnings (for linux and win32 and win64)
...
Fixed a couple of usage of not initialized warnings (unlikely cases)
2007-02-22 16:59:57 +02:00
monty@mysql.com/narttu.mysql.fi
26aa385bc5
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/my/mysql-5.0
2007-02-21 14:07:08 +02:00
msvensson@neptunus.(none)
ede3afe470
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
2007-02-06 14:45:08 +01:00
cmiller@zippy.cornsilk.net
ad66e7a0dd
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-maint
2007-01-31 16:23:05 -05:00
joerg@trift2.
e56eb2288c
Fix bug#23293 "readline detection broken on NetBSD":
...
Its root cause is a difference between the "readline" and "libedit" (header files)
definitions of "rl_completion_entry_function", where the "libedit" one is wrong anyway:
This variable is used as a pointer to a function returning "char *",
but "libedit" declares it as returning "int" and then adds casts on usage.
Change it to "CPFunction *" and get rid of the casts.
2007-01-31 15:25:56 +01:00
msvensson@pilot.mysql.com
d42b919a0b
Bug#19474 readline bug: mysql: free(): invalid pointer
...
- Write to uninitialised memory occured since _rl_rapped_lines buffer
was not extended in CHECK_INV_LBREAKS macro
- Patch submitted to bug-readline@gnu.org
2007-01-29 12:24:08 +01:00
monty@mysql.com/narttu.mysql.fi
a04157fbb3
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/my/mysql-5.0
2007-01-22 14:04:40 +02:00
joerg@trift2.
9d4f594ac9
cmd-line-utils/readline/undo.c : Replace an "uint" cast by the expanded "unsigned int" (compile problem on QNX).
2007-01-19 11:58:29 +01:00
kent@mysql.com/kent-amd64.(none)
226a5c833f
Many files:
...
Changed header to GPL version 2 only
2006-12-23 20:17:15 +01:00
tsmith/tim@siva.hindu.god
7c82a06dcf
Remove warnings by casting
2006-12-19 20:17:33 -07:00
monty@mysql.com/narttu.mysql.fi
88dd873de0
Fixed compiler warnings detected by option -Wshadow and -Wunused:
...
- Removed not used variables and functions
- Added #ifdef around code that is not used
- Renamed variables and functions to avoid conflicts
- Removed some not used arguments
Fixed some class/struct warnings in ndb
Added define IS_LONGDATA() to simplify code in libmysql.c
I did run gcov on the changes and added 'purecov' comments on almost all lines that was not just variable name changes
2006-12-15 00:51:37 +02:00
monty@mysql.com/narttu.mysql.fi
601e6f4b2a
Fixed compiler warnings
...
Don't assert if my_thread_end() is called twice (common case)
2006-11-30 21:56:03 +02:00
monty@mysql.com/nosik.monty.fi
e825879800
Remove compiler warnings
...
(Mostly in DBUG_PRINT() and unused arguments)
Fixed bug in query cache when used with traceing (--with-debug)
Fixed memory leak in mysqldump
Removed warnings from mysqltest scripts (replaced -- with #)
2006-11-20 22:42:06 +02:00
msvensson@neptunus.(none)
7786d075e7
Merge neptunus.(none):/home/msvensson/mysql/bug16557/my50-bug16557
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-02-21 08:58:19 +01:00
msvensson@neptunus.(none)
26d5e2d832
Bug#16557 mysql cmd-line client does not rename .mysql_history.TMP to .mysql_history
...
- Return error only if 'history' returns -1
2006-02-13 14:02:39 +01:00
serg@serg.mylan
14f94dc0ca
many warnings (practically safe but annoying) corrected
2006-01-03 17:54:54 +01:00
kent@mysql.com
4742f585b1
Merge
2005-11-04 02:17:11 +01:00
bar@mysql.com
d99146ce2c
complete.c:
...
Fixed compilation problem on FreeBSD,
after discussion with Jani.
Doesn't FreeBSD follow the standard?
2005-10-11 16:56:42 +05:00
jani@ua141d10.elisa.omakaista.fi
eaff73807c
Changed __USE_XOPEN to _XOPEN_SOURCE and got rid of
...
some extra code.
2005-10-04 20:22:39 +03:00
jani@ua141d10.elisa.omakaista.fi
17e87da298
Some fixes including implicit declaration of a function,
...
using wrong type in assignment etc.
2005-10-04 18:20:57 +03:00
kent@mysql.com
095efe48a5
Makefile.am, configure.in:
...
Enable "make distcheck" to work
2005-09-24 15:51:45 +02:00
jani@a193-229-222-105.elisa-laajakaista.fi
acf218b708
Several fixes revelaled by Intel compiler.
2005-09-23 16:47:08 +03:00
jimw@mysql.com
48536b7668
Merge mysqldev@production.mysql.com:jimw/mysql-5.0-readline
...
into mysql.com:/home/jimw/my/mysql-5.0-readline
2005-07-18 18:04:52 -07:00
jimw@mysql.com
7d7a4626fc
Reimplement use of "config_readline.h" to get readline configuration.
2005-07-18 18:00:19 -07:00
jimw@mysql.com
7cf58d1f86
Upgrade bundled readline to version 5.0.
2005-07-18 17:22:38 -07:00
joerg@mysql.com
b323a77375
QNX does not know "uint", so the cast is rewritten as "unsigned int".
2005-07-18 13:52:18 +02:00
joerg@mysql.com
e3feff334f
cmd-line-utils/libedit/chared.c: Fix compile problem caused by use of "uint" which is undefined on QNX.
2005-07-11 15:59:49 +02:00
kent@mysql.com
a7be42163a
Makefile.am:
...
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
2005-07-05 23:24:48 +02:00
matt@mysql.com
8ed0aaacdf
Merge bk-internal:/home/bk/mysql-4.1
...
into mysql.com:/data0/mysqldev/my/mysql-4.1-build
2005-05-18 04:06:27 +02:00
kent@mysql.com
a628878bbf
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/Users/kent/mysql/cw/mysql-4.1
2005-05-14 23:48:15 +02:00
jimw@mysql.com
20037b11fd
Merge mysql.com:/home/jimw/my/mysql-4.1-9603
...
into mysql.com:/home/jimw/my/mysql-4.1-clean
2005-05-13 10:03:16 -07:00