Pointer Target Error
Aydın Demirel
aydindem@gmail.com
Thu Oct 4 14:51:00 GMT 2012
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
--------------------------
More information about the Gcc-help
mailing list