This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Pointer Target Error


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]