From 6fbdc721d972d8c1f823acd5473a3dce8836d5fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2008 10:17:33 +0000 Subject: fix -Wconst warnings [ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mpd_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mpd_types.h') diff --git a/src/mpd_types.h b/src/mpd_types.h index 765d0d001..35ff3604f 100644 --- a/src/mpd_types.h +++ b/src/mpd_types.h @@ -41,4 +41,9 @@ typedef unsigned long mpd_uint32; typedef signed long mpd_sint32; #endif +union const_hack { + const char *in; + char *out; +}; + #endif -- cgit v1.2.3