]> granicus.if.org Git - yasm/commitdiff
Fix up some GCC 4.x warnings.
authorPeter Johnson <peter@tortall.net>
Thu, 15 Feb 2007 03:03:12 +0000 (03:03 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 15 Feb 2007 03:03:12 +0000 (03:03 -0000)
Submitted by: Charles Bailey <yasm@hashpling.org>

svn path=/trunk/yasm/; revision=1770

libyasm/arch.h
modules/objfmts/coff/coff-objfmt.c
modules/parsers/nasm/nasm-parse.c

index 2355571995c56c59064721e3d569b4f43f39e3d2..0931b84fdf723852308d7551f113683d28839dce 100644 (file)
@@ -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
 
index 395f67522de7101b04a96b2db6b3e29caf3425c5..efbf1749d5eb6ed08d9f6507365bd715883efba7 100644 (file)
@@ -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 <time.h>
 #include <util.h>
+#include <time.h>
 /*@unused@*/ RCSID("$Id$");
 
 #define YASM_LIB_INTERNAL
index 2a96b99683b1ffa1aee7b0e5f161d5d091e2bddf..d7ca2987dbf822062863b14815632e47da3e4d81 100644 (file)
@@ -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[] = {