summaryrefslogtreecommitdiff
path: root/storage/connect/filamdbf.cpp
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2019-08-08 22:52:22 +0300
committerSergei Golubchik <serg@mariadb.org>2019-08-23 22:03:54 +0200
commita38f47e90ce8273e83b4151cd93a0a224420f69b (patch)
tree3faafa530d602fe2440dfaf13dec4ad23e24c265 /storage/connect/filamdbf.cpp
parentde8b51fdc9d998fdf9c2d5c317a6da063c73d84a (diff)
downloadmariadb-git-a38f47e90ce8273e83b4151cd93a0a224420f69b.tar.gz
Fixed compiler warnings from connect engine
- clang complains about register in C++ - Removed not used variables - Fixed bug when printing date in filamdbf.cpp - Added {} to fix warning about dangling else - Changed connect_done_func() to be global to remove conflict with header files - Added extra () around assignment in if
Diffstat (limited to 'storage/connect/filamdbf.cpp')
-rw-r--r--storage/connect/filamdbf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/filamdbf.cpp b/storage/connect/filamdbf.cpp
index 350c3ddde35..253ed96a044 100644
--- a/storage/connect/filamdbf.cpp
+++ b/storage/connect/filamdbf.cpp
@@ -253,7 +253,7 @@ PQRYRES DBFColumns(PGLOBAL g, PCSZ dp, PCSZ fn, bool info)
mainhead.Encryptflag, mainhead.Mdxflag, mainhead.Language);
htrc("%hd records, last changed %02d/%02d/%d\n",
mainhead.Records(), mainhead.Filedate[1], mainhead.Filedate[2],
- mainhead.Filedate[0] + (mainhead.Filedate[0] <= 30) ? 2000 : 1900);
+ mainhead.Filedate[0] + ((mainhead.Filedate[0] <= 30) ? 2000 : 1900));
htrc("Field Type Offset Len Dec Set Mdx\n");
} // endif trace