https://bugzilla.wikimedia.org/show_bug.cgi?id=24357
Summary: wikidiff2: make error with GCC 4.4
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: Linux
Status: NEW
Keywords: easy, patch
Severity: major
Priority: Normal
Component: wikidiff2
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=7567)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=7567)
patch for php_wikidiff2.cpp (r67994)
When using GCC 4.4, `make` shows following errors:
php_wikidiff2.cpp:36: error: invalid conversion from ‘const
zend_function_entry*’ to ‘_zend_function_entry*’
php_wikidiff2.cpp:94: error: invalid conversion from ‘const char*’ to
‘char*’
see http://blog.flameeyes.eu/2009/07/02/how-not-to-fix-gcc-4-4-bugs
We must use the const_cast.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l