]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Pacify Oracle Studio c99
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Aug 2019 19:32:07 +0000 (12:32 -0700)
committerPaul Smith <psmith@gnu.org>
Mon, 2 Sep 2019 15:11:26 +0000 (11:11 -0400)
* src/dep.h (DEP):
* src/function.c (struct function_table_entry):
Use unsigned int, not unsigned short.  Without this patch, c99
complains ‘warning: nonportable bit-field type’.

src/dep.h
src/function.c

index baa64df584da292025b7e045612b39107665a6d0..d44a507aceee5643970e7128dcc3a64748a3e986 100644 (file)
--- a/src/dep.h
+++ b/src/dep.h
@@ -44,11 +44,11 @@ struct nameseq
     NAMESEQ (_t);                               \
     struct file *file;                          \
     const char *stem;                           \
-    unsigned short flags : 8;                   \
-    unsigned short changed : 1;                 \
-    unsigned short ignore_mtime : 1;            \
-    unsigned short staticpattern : 1;           \
-    unsigned short need_2nd_expansion : 1
+    unsigned int flags : 8;                     \
+    unsigned int changed : 1;                   \
+    unsigned int ignore_mtime : 1;              \
+    unsigned int staticpattern : 1;             \
+    unsigned int need_2nd_expansion : 1
 
 struct dep
   {
index 715326d69e63453ed02a86690991a1d35bebe6f3..b709754547df49c08f1ce27117c1ffbdea8c5094 100644 (file)
@@ -38,8 +38,8 @@ struct function_table_entry
     unsigned char len;
     unsigned char minimum_args;
     unsigned char maximum_args;
-    unsigned char expand_args:1;
-    unsigned char alloc_fn:1;
+    unsigned int expand_args:1;
+    unsigned int alloc_fn:1;
   };
 
 static unsigned long