getopt: a function that calls exit(3) should be marked noreturn

This commit is contained in:
Aaron Jones 2016-06-01 20:03:52 +00:00
parent 83adc41d5c
commit 47493ba39c
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

View file

@ -37,7 +37,7 @@ struct lgetopt
extern struct lgetopt myopts[]; extern struct lgetopt myopts[];
void usage(const char *); void usage(const char *) __attribute__((noreturn));
void parseargs(int *, char * const **, struct lgetopt *); void parseargs(int *, char * const **, struct lgetopt *);
#endif /* __GETOPT_H_INCLUDED__ */ #endif /* __GETOPT_H_INCLUDED__ */