Changeset: 8eea6d2e5a1d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8eea6d2e5a1d
Modified Files:
configure.ag
monetdb5/mal/mal_debugger.mx
sql/backends/monet5/datacell/README
template/ChangeLog
template/ChangeLog-Archive
template/ChangeLog.Apr2011
template/ChangeLog.Aug2011
template/ChangeLog.Jun2010
template/ChangeLog.Mar2011
template/ChangeLog.Oct2010
template/Makefile.ag
template/README5
template/RunMapprove.in
template/RunMtest.in
template/bootstrap
template/conf/Makefile.ag
template/conf/Tests/All
template/conf/Tests/monetdb-template-conds.bat
template/conf/Tests/monetdb-template-conds.sh
template/conf/Tests/monetdb-template-conds.stable.err
template/conf/Tests/monetdb-template-conds.stable.out.32bit
template/conf/Tests/monetdb-template-conds.stable.out.64bit
template/conf/Tests/monetdb-template-conds.stable.out.Debian4.0.32bit
template/conf/Tests/monetdb-template-conds.stable.out.SunOS5.11.32bit
template/conf/monetdb-template-config.in
template/configure.ag
template/de-bootstrap
template/rpm.mk.in
template/src/Makefile.ag
template/src/example.sql
template/src/monetdb5/Makefile.ag
template/src/monetdb5/Tests/All
template/src/monetdb5/Tests/hello.mal
template/src/monetdb5/Tests/hello.stable.err
template/src/monetdb5/Tests/hello.stable.out
template/src/monetdb5/example.c
template/src/monetdb5/example.h
template/src/monetdb5/example.mal
Branch: default
Log Message:
Merge with Aug2011 branch.
diffs (truncated from 2428 to 300 lines):
diff --git a/Makefile.ag b/Makefile.ag
--- a/Makefile.ag
+++ b/Makefile.ag
@@ -27,4 +27,4 @@
EXTRA_DIST = bootstrap configure configure.ac configure.ag libversions \
MonetDB.spec rpm.mk.in COPYING README license.txt
HowToStart.rst
-EXTRA_DIST_DIR = NT debian template
+EXTRA_DIST_DIR = NT debian
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -283,14 +283,14 @@
static timertype th = 0;
static void
-timerHumanStop()
+timerHumanStop(void)
{
th = gettime();
}
static char htimbuf[32];
static char *
-timerHuman()
+timerHuman(void)
{
timertype t = th - t0;
diff --git a/clients/mapiclient/mnc.c b/clients/mapiclient/mnc.c
--- a/clients/mapiclient/mnc.c
+++ b/clients/mapiclient/mnc.c
@@ -68,7 +68,7 @@
static void
-usage()
+usage(void)
{
fprintf(stderr, "mnc [options] destination port\n");
fprintf(stderr, " -l | --listen listen for connection instead\n");
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -152,7 +152,7 @@
static wthread *thds = NULL;
static void
-usage()
+usage(void)
{
fprintf(stderr, "stethoscope [options] +[trace options]
{<mod>.<fcn>}\n");
fprintf(stderr, " -d | --dbname=<database_name>\n");
diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -1274,7 +1274,7 @@
}
static long
-usec()
+usec(void)
{
#ifdef HAVE_GETTIMEOFDAY
struct timeval tp;
diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -114,7 +114,6 @@
dft_optimi=no
dft_develop=no
fi
-dft_warning=no
dnl small hack to get icc -no-gcc, done here because AC_PROG_CC shouldn't
dnl set GCC=yes if we use icc.
@@ -562,7 +561,10 @@
X_CFLAGS="$X_CFLAGS -Wformat=2 -Wno-format-nonliteral"
X_CFLAGS="$X_CFLAGS -Winit-self"
X_CFLAGS="$X_CFLAGS -Winvalid-pch"
+ X_CFLAGS="$X_CFLAGS -Wmissing-declarations"
X_CFLAGS="$X_CFLAGS -Wmissing-format-attribute"
+ X_CFLAGS="$X_CFLAGS -Wmissing-prototypes"
+ X_CFLAGS="$X_CFLAGS -Wold-style-definition"
X_CFLAGS="$X_CFLAGS -Wpacked"
X_CFLAGS="$X_CFLAGS -Wunknown-pragmas"
case "$CC-$gcc_ver" in
@@ -629,11 +631,8 @@
dnl X_CFLAGS="$X_CFLAGS -Wdisabled-optimization"
dnl X_CFLAGS="$X_CFLAGS -Wfloat-equal"
dnl X_CFLAGS="$X_CFLAGS -Winline"
- dnl X_CFLAGS="$X_CFLAGS -Wmissing-declarations"
dnl X_CFLAGS="$X_CFLAGS -Wmissing-noreturn"
- dnl X_CFLAGS="$X_CFLAGS -Wmissing-prototypes"
dnl X_CFLAGS="$X_CFLAGS -Wnested-externs"
- dnl X_CFLAGS="$X_CFLAGS -Wold-style-definition"
dnl X_CFLAGS="$X_CFLAGS -Wpadded"
dnl X_CFLAGS="$X_CFLAGS -Wredundant-decls"
dnl X_CFLAGS="$X_CFLAGS -Wshadow"
@@ -957,12 +956,6 @@
enable_optim=$enableval,
enable_optim=def_$dft_optimi)
-AC_ARG_ENABLE(warning,
- AS_HELP_STRING([--enable-warning],
- [enable extended compiler warnings (default=$dft_warning)]),
- enable_warning=$enableval,
- enable_warning=def_$dft_warning)
-
need_profiling=no
AC_ARG_ENABLE(profile,
AS_HELP_STRING([--enable-profile], [enable profiling (default=no)]),
@@ -1034,7 +1027,6 @@
esac
# make defaults real for flags which don't conflict with anything
enable_assert="`echo $enable_assert | sed 's:^def_::'`"
-enable_warning="`echo $enable_warning | sed 's:^def_::'`"
AC_MSG_CHECKING([for --enable-debug])
if test "x$enable_debug" = xyes; then
@@ -1247,25 +1239,6 @@
AC_MSG_RESULT([no])
fi
-AC_MSG_CHECKING([for --enable-warning])
-if test "x$enable_warning" = xyes; then
- dnl Basically, we disable/overule X_CFLAGS, i.e., "-Werror" and some
"-Wno-*".
- dnl All warnings should be on by default (see above).
- case $GCC-$host_os in
- yes-*)
- dnl GNU (gcc/g++)
- X_CFLAGS="-pedantic -Wno-long-long"
- ;;
- -linux*)
- dnl Intel ([ie]cc/[ie]cpc on Linux)
- X_CFLAGS=""
- ;;
- esac
- AC_MSG_RESULT([yes: ${X_CFLAGS}])
-else
- AC_MSG_RESULT([no])
-fi
-
AC_MSG_CHECKING([for --enable-profile])
if test "x$enable_prof" = xyes; then
AC_DEFINE(PROFILE, 1, [Compiler flag])
diff --git a/monetdb5/extras/compiler/mal_compiler.mx
b/monetdb5/extras/compiler/mal_compiler.mx
--- a/monetdb5/extras/compiler/mal_compiler.mx
+++ b/monetdb5/extras/compiler/mal_compiler.mx
@@ -777,7 +777,7 @@
Dump the code produced in the standard output for ease of testing
@c
static void
-mccDump(){
+mccDump(void){
FILE *f;
int ch;
f= fopen(codefile,"r");
diff --git a/monetdb5/mal/mal.mx b/monetdb5/mal/mal.mx
--- a/monetdb5/mal/mal.mx
+++ b/monetdb5/mal/mal.mx
@@ -366,7 +366,7 @@
GDKfatal("Recompile with STRUCT_ALIGNED flag disabled\n");
#endif
}
-int mal_init(){
+int mal_init(void){
MT_lock_init( &mal_contextLock, "mal_contextLock");
MT_lock_init( &mal_remoteLock, "mal_remoteLock");
MT_lock_init( &mal_profileLock, "mal_profileLock");
diff --git a/monetdb5/mal/mal_authorize.mx b/monetdb5/mal/mal_authorize.mx
--- a/monetdb5/mal/mal_authorize.mx
+++ b/monetdb5/mal/mal_authorize.mx
@@ -159,7 +159,7 @@
}
static void
-AUTHcommit()
+AUTHcommit(void)
{
bat blist[3];
@@ -181,7 +181,7 @@
can only be done after the GDK kernel has been initialized.
@c
str
-AUTHinitTables() {
+AUTHinitTables(void) {
bat bid;
BAT *b;
int isNew = 1;
diff --git a/monetdb5/mal/mal_client.mx b/monetdb5/mal/mal_client.mx
--- a/monetdb5/mal/mal_client.mx
+++ b/monetdb5/mal/mal_client.mx
@@ -357,7 +357,7 @@
GDKfree(x);
}
-static Client MCnewClient()
+static Client MCnewClient(void)
{
Client c;
mal_set_lock(mal_contextLock, "newClient");
@@ -718,7 +718,7 @@
At the end of the server session all remaining structured are
explicitly released to simplify detection of memory leakage problems.
@c
-void MCcleanupClients(){
+void MCcleanupClients(void){
Client c;
for(c = mal_clients; c < mal_clients+MAL_MAXCLIENTS; c++) {
/* if( c->nspace){ freeModuleList(c->nspace); c->nspace=0;}*/
@@ -732,7 +732,7 @@
}
}
void
-MCexitPending()
+MCexitPending(void)
{
Client c;
@@ -768,7 +768,7 @@
Mapi connection. Moreover, the Mapi connection should disable the administrator
console.
@c
-int MCcountClients(){
+int MCcountClients(void){
int cnt=0;
Client c;
for(c = mal_clients; c < mal_clients+MAL_MAXCLIENTS; c++)
diff --git a/monetdb5/mal/mal_debugger.mx b/monetdb5/mal/mal_debugger.mx
--- a/monetdb5/mal/mal_debugger.mx
+++ b/monetdb5/mal/mal_debugger.mx
@@ -1557,7 +1557,7 @@
printStack(cntxt->fdout,mb,stk);
}
static int mdbSessionActive;
-int mdbSession(){
+int mdbSession(void){
return mdbSessionActive;
}
@-
diff --git a/monetdb5/mal/mal_factory.mx b/monetdb5/mal/mal_factory.mx
--- a/monetdb5/mal/mal_factory.mx
+++ b/monetdb5/mal/mal_factory.mx
@@ -306,7 +306,7 @@
mal_export Plant newPlant(MalBlkPtr mb);
int
-factoryHasFreeSpace(){
+factoryHasFreeSpace(void){
return lastPlant <MAXPLANTS-1;
}
static int
diff --git a/monetdb5/mal/mal_linker.mx b/monetdb5/mal/mal_linker.mx
--- a/monetdb5/mal/mal_linker.mx
+++ b/monetdb5/mal/mal_linker.mx
@@ -331,7 +331,7 @@
because they may still be in use.
@c
void
-unloadLibraries()
+unloadLibraries(void)
{
int i;
@@ -376,7 +376,7 @@
}
void
-initLibraries()
+initLibraries(void)
{
int i;
str msg;
diff --git a/monetdb5/mal/mal_namespace.mx b/monetdb5/mal/mal_namespace.mx
--- a/monetdb5/mal/mal_namespace.mx
+++ b/monetdb5/mal/mal_namespace.mx
@@ -128,7 +128,7 @@
#endif
}
-void initNamespace() {
+void initNamespace(void) {
namespace.nme= (str *) GDKzalloc(sizeof(str *) * MAXIDENTIFIERS);
namespace.link= (int *) GDKzalloc(sizeof(int) * MAXIDENTIFIERS);
namespace.hit= (int *) GDKzalloc(sizeof(int) * MAXIDENTIFIERS);
@@ -161,7 +161,7 @@
backup.nmetop= 256; /* hash overflow */
#endif
}
-void finishNamespace() {
+void finishNamespace(void) {
int i;
for(i=0;i<namespace.nmetop; i++) {
if( namespace.nme[i])
diff --git a/monetdb5/mal/mal_parser.mx b/monetdb5/mal/mal_parser.mx
--- a/monetdb5/mal/mal_parser.mx
+++ b/monetdb5/mal/mal_parser.mx
@@ -151,7 +151,7 @@
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list