[sr-dev] git:5.2:9db6d9cc: db_mysql: remove build warning, unneeded include (#1777)
Henning Westerholt
hw at skalatan.de
Tue Aug 6 09:49:32 CEST 2019
Module: kamailio
Branch: 5.2
Commit: 9db6d9cc7751684981c2b602b3bd6021edc3a7fb
URL: https://github.com/kamailio/kamailio/commit/9db6d9cc7751684981c2b602b3bd6021edc3a7fb
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-08-06T09:48:52+02:00
db_mysql: remove build warning, unneeded include (#1777)
db_mysql: mysql_version.h is already included at mysql.h (GH #1777)
> In file included from km_dbase.c:38:
> /usr/include/mariadb/mysql_version.h:3:2: warning: This file should not be included by clients, include only <mysql.h> [-W#warnings]
> #warning This file should not be included by clients, include only <mysql.h>
(cherry picked from commit 57263490bd1dedbb4b7fdad6046880980feea040)
---
Modified: src/modules/db_mysql/km_dbase.c
---
Diff: https://github.com/kamailio/kamailio/commit/9db6d9cc7751684981c2b602b3bd6021edc3a7fb.diff
Patch: https://github.com/kamailio/kamailio/commit/9db6d9cc7751684981c2b602b3bd6021edc3a7fb.patch
---
diff --git a/src/modules/db_mysql/km_dbase.c b/src/modules/db_mysql/km_dbase.c
index ad02746c67..581e4e14be 100644
--- a/src/modules/db_mysql/km_dbase.c
+++ b/src/modules/db_mysql/km_dbase.c
@@ -35,7 +35,6 @@
#include <string.h>
#include <mysql.h>
#include <errmsg.h>
-#include <mysql_version.h>
#include "../../core/mem/mem.h"
#include "../../core/dprint.h"
#include "../../core/async_task.h"
More information about the sr-dev
mailing list