[buddy]
Tag functions with attributes pure, const, or noreturn. * src/bdd.h (__purefn, __constfn, __noreturnfn): Define new macros. * src/bdd.h, src/bddio.c, src/bvec.h, src/imatrix.h: Use them to tag many functions as suggested by -Wsuggest-attribute=pure, -Wsuggest-attribute=const, -Wsuggest-attribute=noreturn.
This commit is contained in:
parent
61d9e721a0
commit
5fdfe28689
5 changed files with 50 additions and 28 deletions
|
|
@ -37,6 +37,8 @@
|
|||
#ifndef _IMATRIX_H
|
||||
#define _IMATRIX_H
|
||||
|
||||
#include "bdd.h" /* for __purefn */
|
||||
|
||||
typedef struct _imatrix
|
||||
{
|
||||
char **rows;
|
||||
|
|
@ -50,7 +52,7 @@ extern void imatrixFPrint(imatrix*,FILE *);
|
|||
extern void imatrixPrint(imatrix*);
|
||||
extern void imatrixSet(imatrix*,int,int);
|
||||
extern void imatrixClr(imatrix*,int,int);
|
||||
extern int imatrixDepends(imatrix*,int,int);
|
||||
extern int imatrixDepends(imatrix*,int,int) __purefn;
|
||||
|
||||
|
||||
#endif /* _IMATRIX_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue