forked from enlightenment/efl
coverity: add modeling file to reduce false positives.
This commit is contained in:
parent
7de5146a3b
commit
3ff5dc33e2
|
@ -0,0 +1,26 @@
|
||||||
|
/*
|
||||||
|
* Coverity Model - not a real source file.
|
||||||
|
*
|
||||||
|
* See https://scan.coverity.com/tune
|
||||||
|
* See https://scan.coverity.com/models
|
||||||
|
*
|
||||||
|
* Coverity doesn't detect changes to this file, update manually at:
|
||||||
|
*
|
||||||
|
* https://scan.coverity.com/projects/enlightenment-foundation-libraries?tab=analysis_settings
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int fd;
|
||||||
|
} Eo;
|
||||||
|
|
||||||
|
/* force Coverity to understand these take ownership of fd */
|
||||||
|
|
||||||
|
void efl_loop_fd_set(Eo *obj, int fd)
|
||||||
|
{
|
||||||
|
obj->fd = fd;
|
||||||
|
}
|
||||||
|
|
||||||
|
void efl_loop_fd_file_set(Eo *obj, int fd)
|
||||||
|
{
|
||||||
|
obj->fd = fd;
|
||||||
|
}
|
Loading…
Reference in New Issue