Make old compilers not choke -- define the attribute in the func prototype.

This commit is contained in:
Eric Andersen 2001-01-31 23:00:46 +00:00
parent dd19c69904
commit bd018b1bab
2 changed files with 6 additions and 2 deletions

View File

@ -255,7 +255,9 @@ static inline int bit(char * a,unsigned int i)
#define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1)) #define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1))
#define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1)) #define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1))
static __attribute__ ((noreturn)) void show_usage() static void show_usage() __attribute__ ((noreturn));
static void show_usage()
{ {
usage(mkfs_minix_usage); usage(mkfs_minix_usage);
} }

View File

@ -255,7 +255,9 @@ static inline int bit(char * a,unsigned int i)
#define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1)) #define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1))
#define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1)) #define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1))
static __attribute__ ((noreturn)) void show_usage() static void show_usage() __attribute__ ((noreturn));
static void show_usage()
{ {
usage(mkfs_minix_usage); usage(mkfs_minix_usage);
} }