[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: const pains with lpcode in Lpeg 0.11
- From: Gavin Wraith <gavin@...>
- Date: Fri, 29 Mar 2013 13:15:12 GMT
I am having these error messages when I try to compile
lpeg 0.11:
"c.lpcode", line 287: Error: assignment to 'const' object 'follow'
"c.lpcode", line 287: Error: '=': qualifier-losing implicit cast of pointer
"c.lpcode", line 444: Warning: <argument 2 to 'addinstruction'>: cast of 'int' to differing enum
"c.lpcode", line 511: Warning: <argument 2 to 'addinstruction'>: cast of 'int' to differing enum
"c.lpcode", line 565: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 584: Error: <argument 2 to 'getfirst'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 600: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 608: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 626: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 633: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 664: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 687: Error: <argument 2 to 'getfirst'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 692: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 708: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 727: Error: <argument 2 to 'getfirst'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 734: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 778: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 802: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
"c.lpcode", line 892: Error: <argument 5 to 'codegen'>: qualifier-losing implicit cast of pointer
which I guess happens because my compiler does not allow assignments to types qualified as
const. Any suggestions how I get round this?
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/