[PATCH] Fix __asm__ __const__ in glib-1.2.x branch



Hello!

If you ever release glib 1.2.11, it would be a shame if this warning is 
still not fixed.  glib.h uses "__asm__ __const__", which makes no sense, 
and gcc 3.2 (and some older versions) complains whenever those macros are 
used.  The warnings in displayed by default, without any "-W" options.

Example from GNU Midnight Commander (GUINT16_SWAP_LE_BE is used):

cpio.c: In function `cpio_read_bin_head':
cpio.c:260: warning: const qualifier ignored on asm

This is already fixed in glib 2.0.  The attached patch removes __const__
and realigns backslashes.

-- 
Regards,
Pavel Roskin

Attachment: asmconst.diff.gz
Description: GNU Zip compressed data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]