Pointer Target Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all;

I'm trying to compile a program with gcc-4.6.2 and getting following error:

/sources/comar/dbus/comar/src/
csl.c: In function 'py_compile':
/sources/comar/dbus/comar/src/csl.c:184:18: error: pointer targets in
initialization differ in signedness [-Werror=pointer-sign]

Here is the code block where the error occurred:


int
py_compile(const char *script_path)
{
    /*!
     * Checks CSL script for errors.
     *
     * @script_path Absolute or relative path of the CSL script.
     * @return 0 on success, 1 on IO errors (missing file, etc.), 2 on
script error
     */

    PyObject *pCode;
    char *code = load_file(script_path, NULL);  ==> (line 184.)
    if (!code) {
        return 1;
    }

    pCode = Py_CompileString(code, "<script.py>", Py_file_input);
    free(code);
    if (!pCode) {
        return 2;
    }

    return 0;
}

I've tried other types of data and searched in google.

What can be the problem?

Regards

Aydın Demirel
--------------------------



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux