Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#104 warning for build

MySQLdb-1.1
closed
Andy Dustman
MySQLdb (285)
1
2012-09-19
2004-09-13
No

I build MySQLdb by mingw.

My OS: winXP
compiler: gcc (GCC) 3.3.3 (mingw special)
MySql: Ver 12.22 Distrib 4.0.16, for Win95/Win98 (i32)

command line:

setup.py build -cmingw32

I have warnings:

_mysql.c: In function
_mysql_ConnectionObject_Initialize': _mysql.c:432: warning: unused variablevalue'
_mysql.c:433: warning: unused variable key' _mysql.c:433: warning: unused variablecert'
_mysql.c:433: warning: unused variable ca' _mysql.c:434: warning: unused variablecapath'
_mysql.c:434: warning: unused variable cipher' _mysql.c:522: warning: labelerror' defined but not used

Discussion

  • Andy Dustman
    Andy Dustman
    2004-09-19

    Logged In: YES
    user_id=71372

    It would be useful to know what version of MySQLdb you are
    using, and what Python version.

     
  • Logged In: YES
    user_id=980085

    I use latest CVS sourse for MySQLdb.
    And I use Python 2.3.4 for Win32 from python.org.
    In my system macros HAVE_OPENSSL undefuned.

     
  • Andy Dustman
    Andy Dustman
    2004-09-20

    Logged In: YES
    user_id=71372

    OK, I think the warnings are just that: Warnings. They
    shouldn't affect operation. I'll try to fix this for the
    next release.

     
  • Logged In: NO

    i too had same problem

     
  • Andy Dustman
    Andy Dustman
    2004-09-26

    Logged In: YES
    user_id=71372

    This has been fixed in the current CVS tree.

     
  • Logged In: YES
    user_id=980085

    Bat two wrning also present:

    _mysql.c: In function _mysql_ConnectionObject_Initialize': _mysql.c:432: warning: unused variablevalue'
    _mysql.c:524: warning: label `error' defined but not used

     
  • Logged In: YES
    user_id=980085

    version 1.1.6 - two warnings present
    _mysql.c: In function _mysql_ConnectionObject_Initialize': _mysql.c:432: warning: unused variablevalue'
    _mysql.c:524: warning: label `error' defined but not used

    I not have OpenSSL in my librarys
    Os: WinXP + SP1
    gcc (GCC) 3.4.2 (mingw-special)
    mingw runtime: MINGW32_VERSION 3.5
    w32api packet:
    W32API_VERSION 3.1
    MYSQL_SERVER_VERSION "4.0.16"

     
  • Andy Dustman
    Andy Dustman
    2005-01-23

    Logged In: YES
    user_id=71372

    I'm pretty sure this is fixed now; reopen if otherwise.