From 2cf221e2d12b26063b55bcf05c03837ea54c031d Mon Sep 17 00:00:00 2001 From: MrDave Date: Sun, 1 Dec 2019 20:04:29 -0700 Subject: [PATCH] Additional developer warnings --- configure.ac | 2 +- src/dbse.cpp | 2 +- src/motion_loop.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 501b0686..abcfa04e 100644 --- a/configure.ac +++ b/configure.ac @@ -461,7 +461,7 @@ AC_ARG_WITH([developer-flags], [DEVELOPER_FLAGS=no]) AS_IF([test "${DEVELOPER_FLAGS}" = "yes"], [ - TEMP_CPPFLAGS="$TEMP_CPPFLAGS -W -Werror -Wall -Wextra -Wformat -Wshadow -Wpointer-arith -Wwrite-strings -Winline -Wredundant-decls -Wno-long-long -ggdb -g3" + TEMP_CPPFLAGS="$TEMP_CPPFLAGS -W -Wall -Wextra -Wformat -Wshadow -Wpointer-arith -Wwrite-strings -Winline -Wredundant-decls -Wno-long-long -ggdb -g3" ] ) diff --git a/src/dbse.cpp b/src/dbse.cpp index 15fa3afc..519dae64 100644 --- a/src/dbse.cpp +++ b/src/dbse.cpp @@ -61,7 +61,7 @@ void dbse_global_deinit(struct ctx_cam **cam_list){ #if defined(HAVE_MYSQL) if (cam_list[0]->conf->database_type != "") { - if (mystreq(cam_list[0]->conf->database_type, "mysql")) { + if (cam_list[0]->conf->database_type == "mysql")) { MOTION_LOG(DBG, TYPE_ALL, NO_ERRNO, _("Closing MYSQL")); mysql_library_end(); } diff --git a/src/motion_loop.cpp b/src/motion_loop.cpp index 26a97a81..daa63cb4 100644 --- a/src/motion_loop.cpp +++ b/src/motion_loop.cpp @@ -1165,7 +1165,7 @@ static void mlp_setupmode(struct ctx_cam *cam){ if (cam->conf->despeckle_filter != "") { snprintf(part, 99, _("Raw changes: %5d - changes after '%s': %5d"), - cam->olddiffs, cam->conf->despeckle_filter, cam->current_image->diffs); + cam->olddiffs, cam->conf->despeckle_filter.c_str(), cam->current_image->diffs); strcat(msg, part); if (cam->conf->despeckle_filter.find('l') != std::string::npos) { snprintf(part, 99,_(" - labels: %3d"), cam->current_image->total_labels);