From: Peter Johnson Date: Thu, 15 Feb 2007 03:03:12 +0000 (-0000) Subject: Fix up some GCC 4.x warnings. X-Git-Tag: v0.6.0~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d79f08dd1b4226fc9c132bd3ec5b01005d2ac94;p=yasm Fix up some GCC 4.x warnings. Submitted by: Charles Bailey svn path=/trunk/yasm/; revision=1770 --- diff --git a/libyasm/arch.h b/libyasm/arch.h index 23555719..0931b84f 100644 --- a/libyasm/arch.h +++ b/libyasm/arch.h @@ -276,7 +276,7 @@ struct yasm_insn_operand { * to indicate the "*" prefix has been used, and the arch needs to adjust * the operand type appropriately depending on the instruction type. */ - int deref:1; + unsigned int deref:1; /** Nonzero if strict. Used for "strict foo" in NASM. * This is used to inhibit optimization on otherwise "sized" values. @@ -287,7 +287,7 @@ struct yasm_insn_operand { * actually be forced to 4 bytes, the user needs to write * "push strict dword 4", which sets this flag. */ - int strict:1; + unsigned int strict:1; }; #endif diff --git a/modules/objfmts/coff/coff-objfmt.c b/modules/objfmts/coff/coff-objfmt.c index 395f6752..efbf1749 100644 --- a/modules/objfmts/coff/coff-objfmt.c +++ b/modules/objfmts/coff/coff-objfmt.c @@ -24,8 +24,8 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ -#include #include +#include /*@unused@*/ RCSID("$Id$"); #define YASM_LIB_INTERNAL diff --git a/modules/parsers/nasm/nasm-parse.c b/modules/parsers/nasm/nasm-parse.c index 2a96b996..d7ca2987 100644 --- a/modules/parsers/nasm/nasm-parse.c +++ b/modules/parsers/nasm/nasm-parse.c @@ -1213,8 +1213,8 @@ nasm_parser_directive(yasm_parser_nasm *parser_nasm, const char *name, unsigned long line = cur_line; static const struct { const char *name; - int required_arg:1; - int id_only:1; + unsigned int required_arg:1; + unsigned int id_only:1; void (*func) (yasm_parser_nasm *, yasm_valparamhead *, yasm_valparamhead *); } dirs[] = {