From b6884c73b741f017417c3ebf3e76aeba64829b8e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 27 Aug 2019 12:32:07 -0700 Subject: [PATCH] Pacify Oracle Studio c99 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 | 10 +++++----- src/function.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dep.h b/src/dep.h index baa64df5..d44a507a 100644 --- 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 { diff --git a/src/function.c b/src/function.c index 715326d6..b7097545 100644 --- a/src/function.c +++ b/src/function.c @@ -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