From 87e8a5e8983edf5dc47e0651fddaa0ee89e45dae Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 13 Nov 2005 13:07:52 +0000 Subject: Just to be on the safe side about avoiding other portability hazards in future, add `-ansi -pedantic' to the Halibut default compile options and fix the few resulting warnings (mostly signed/unsigned char mismatches and commas at the ends of enums). The one remaining warning I'm still seeing is `missing initializer' for the big table in charset/iso2022.c, but I think the code genuinely is more readable this way, and I haven't found a gcc option to disable that specific warning. [originally from svn r6458] --- halibut.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'halibut.h') diff --git a/halibut.h b/halibut.h index 26c82f6..05b914f 100644 --- a/halibut.h +++ b/halibut.h @@ -177,13 +177,13 @@ enum { attr_First = 0x0001, /* the first of a series */ attr_Last = 0x0002, /* the last of a series */ attr_Always = 0x0003, /* any other part of a series */ - attr_mask = 0x0003, + attr_mask = 0x0003 }; /* aux values for quote-type words */ enum { quote_Open = 0x0010, quote_Close = 0x0020, - quote_mask = 0x0030, + quote_mask = 0x0030 }; #define isattr(x) ( ( (x) > word_Normal && (x) < word_WhiteSpace ) || \ ( (x) > word_WhiteSpace && (x) < word_internal_endattrs ) ) -- cgit v1.1