aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Teirney <david@teirney.net>2012-06-20 23:00:00 +1200
committerDavid Teirney <david@teirney.net>2012-06-20 23:00:00 +1200
commitd0f191391a2b9ad5e4075f9508d8acd58e9303be (patch)
tree2bf0ad3e9a003328381025dc8da1776efd9c494f /lib
parent03c408ce8def01a270304c96c673c79bd5e81b30 (diff)
[libcmyth] Fix compiler warning by removing unused variable.
Diffstat (limited to 'lib')
-rw-r--r--lib/cmyth/libcmyth/mythtv_mysql.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/cmyth/libcmyth/mythtv_mysql.c b/lib/cmyth/libcmyth/mythtv_mysql.c
index 7077dc6390..358cde8fe5 100644
--- a/lib/cmyth/libcmyth/mythtv_mysql.c
+++ b/lib/cmyth/libcmyth/mythtv_mysql.c
@@ -125,7 +125,6 @@ cmyth_database_set_name(cmyth_database_t db, char *name)
static int
cmyth_db_check_connection(cmyth_database_t db)
{
- int new_conn = 0;
if(db->mysql != NULL)
{
/* Fetch the mysql stats (uptime and stuff) to check the connection is
@@ -139,7 +138,6 @@ cmyth_db_check_connection(cmyth_database_t db)
if(db->mysql == NULL)
{
db->mysql = mysql_init(NULL);
- new_conn = 1;
if(db->mysql == NULL)
{
fprintf(stderr,"%s: mysql_init() failed, insufficient memory?",