After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 356602 - const cast warning fixes for libvte
const cast warning fixes for libvte
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.14.x
Other All
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-18 18:38 UTC by Allison Karlitskaya (desrt)
Modified: 2006-11-16 19:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix. (5.42 KB, patch)
2006-09-18 18:41 UTC, Allison Karlitskaya (desrt)
none Details | Review

Description Allison Karlitskaya (desrt) 2006-09-18 18:38:57 UTC
This patch fixes a few warnings mostly related to invalid casts.
Comment 1 Allison Karlitskaya (desrt) 2006-09-18 18:41:00 UTC
Created attachment 72995 [details] [review]
fix.
Comment 2 Mariano Suárez-Alvarez 2006-11-16 17:03:28 UTC
Apart from an unnecessary «if (wrapped)» guarding a «g_free (wrapped)», this looks ok to me. Can I commit this, Behdad?
Comment 3 Behdad Esfahbod 2006-11-16 18:49:18 UTC
Go for it Mariano!
Comment 4 Mariano Suárez-Alvarez 2006-11-16 19:46:25 UTC
Fixed in HEAD.

2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org>

	Bug 356602 – const cast warning fixes for libvte
	Patch by Ryan Lortie (desrt)

	* src/matcher.h: Use const char * where appropriate.
	* src/matcher.c: Use const char * where appropriate.  Cast g_strdup
	to (GCacheDupFunc) to avoid a warning.
	* src/vtetc.h: Use const char * where appropriate.
	* src/vtetc.c: Use const char * where appropriate.  Cast g_strdup
	to (GCacheDupFunc) to avoid a warning.
	* src/vte.c: Use const char * where appropriate.