mariadb/regex
Davi Arnaut 9a5fa17fd3 Bug#45288: pb2 returns a lot of compilation warnings on linux
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.
2010-07-20 15:07:36 -03:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
cclass.h regexp worked only with the default character set. 2003-09-24 13:57:26 +05:00
CHANGES Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt BUG#47850: too many files built in regex/ 2009-10-09 09:53:29 +02:00
cname.h Query cache. 2001-12-02 14:34:01 +02:00
COPYRIGHT Import changeset 2000-07-31 21:29:14 +02:00
debug.c Many files: 2005-09-29 02:08:24 +02:00
debug.ih Many files: 2005-09-29 02:08:24 +02:00
engine.c Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-07-20 15:07:36 -03:00
engine.ih Many files: 2005-09-29 02:08:24 +02:00
main.c Merge 2005-09-29 03:20:31 +02:00
main.ih Many files: 2005-09-29 02:08:24 +02:00
make-ccc Import changeset 2000-07-31 21:29:14 +02:00
Makefile.am my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_regex.h Many files: 2005-09-29 02:08:24 +02:00
README Import changeset 2000-07-31 21:29:14 +02:00
regcomp.c Use UNINIT_VAR workaround instead of LINT_INIT. 2010-07-09 16:37:52 -03:00
regcomp.ih Review of all code pushed since last review 2004-10-20 01:28:42 +03:00
regerror.c Many files: 2005-09-29 02:08:24 +02:00
regerror.ih Many files: 2005-09-29 02:08:24 +02:00
regex.3 Import changeset 2000-07-31 21:29:14 +02:00
regex.7 Import changeset 2000-07-31 21:29:14 +02:00
regex2.h Regex library is switched to use new ctype tools 2002-03-06 20:04:13 +04:00
regexec.c Remove compiler warnings 2006-11-20 22:42:06 +02:00
regexp.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
regfree.c Many files: 2005-09-29 02:08:24 +02:00
reginit.c Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name> 2008-02-18 23:29:39 +01:00
split.c Query cache. 2001-12-02 14:34:01 +02:00
tests Import changeset 2000-07-31 21:29:14 +02:00
utils.h Import changeset 2000-07-31 21:29:14 +02:00
WHATSNEW Import changeset 2000-07-31 21:29:14 +02:00

alpha3.4 release.
Thu Mar 17 23:17:18 EST 1994
henry@zoo.toronto.edu

See WHATSNEW for change listing.

installation notes:
--------
Read the comments at the beginning of Makefile before running.

Utils.h contains some things that just might have to be modified on
some systems, as well as a nested include (ugh) of <assert.h>.

The "fake" directory contains quick-and-dirty fakes for some header
files and routines that old systems may not have.  Note also that
-DUSEBCOPY will make utils.h substitute bcopy() for memmove().

After that, "make r" will build regcomp.o, regexec.o, regfree.o,
and regerror.o (the actual routines), bundle them together into a test
program, and run regression tests on them.  No output is good output.

"make lib" builds just the .o files for the actual routines (when
you're happy with testing and have adjusted CFLAGS for production),
and puts them together into libregex.a.  You can pick up either the
library or *.o ("make lib" makes sure there are no other .o files left
around to confuse things).

Main.c, debug.c, split.c are used for regression testing but are not part
of the RE routines themselves.

Regex.h goes in /usr/include.  All other .h files are internal only.
--------