Quiet some format string warnings by marking prototypes with
__printflike() MFC After: 1 week
This commit is contained in:
parent
85148c25cf
commit
556fc0b7e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97371
@ -63,7 +63,7 @@ extern BOOLEAN playing; /* currently playing game */
|
||||
|
||||
extern char expl[]; /* string for explanation */
|
||||
|
||||
void addmsg(const char *, ...);
|
||||
void addmsg(const char *, ...) __printflike(1, 2);
|
||||
int adjust(CARD [], CARD);
|
||||
int anymove(CARD [], int, int);
|
||||
int anysumto(CARD [], int, int, int);
|
||||
@ -91,7 +91,7 @@ int isone(CARD, CARD [], int);
|
||||
void makeboard(void);
|
||||
void makedeck(CARD []);
|
||||
void makeknown(CARD [], int);
|
||||
void msg(const char *, ...);
|
||||
void msg(const char *, ...) __printflike(1, 2);
|
||||
int msgcard(CARD, BOOLEAN);
|
||||
int msgcrd(CARD, BOOLEAN, char *, BOOLEAN);
|
||||
int number(int, int, char *);
|
||||
|
@ -69,14 +69,13 @@ static u_int qsize;
|
||||
|
||||
char *appdstr(char *, char *, size_t);
|
||||
void downcase(char *);
|
||||
void err(const char *, ...);
|
||||
void err(const char *, ...) __printflike(1, 2);
|
||||
void get_cats(char *, char *);
|
||||
void get_file(char *);
|
||||
char *next_cat(char *);
|
||||
void quiz(void);
|
||||
void score(u_int, u_int, u_int);
|
||||
void show_index(void);
|
||||
void usage(void);
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
@ -78,8 +78,8 @@ struct ltchars olttyc, nlttyc;
|
||||
#endif
|
||||
struct point *point();
|
||||
#if __STDC__
|
||||
void apr(struct point *, const char *, ...);
|
||||
void pr(const char *, ...);
|
||||
void apr(struct point *, const char *, ...) __printflike(2, 3);
|
||||
void pr(const char *, ...) __printflike(1, 2);
|
||||
#else
|
||||
void apr();
|
||||
void pr();
|
||||
|
Loading…
Reference in New Issue
Block a user