summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-19 11:09:02 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-19 11:09:02 -0200
commit3ff5dc33e2d41e5d338ec1b604a1ecb41d82b2db (patch)
treea649376f0a75657a9b9527c691e58df3dcac8870 /data
parent7de5146a3b66b5136c3a5ce0b31b5ebd91978f9f (diff)
coverity: add modeling file to reduce false positives.
Diffstat (limited to 'data')
-rw-r--r--data/coverity/model.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/data/coverity/model.c b/data/coverity/model.c
new file mode 100644
index 0000000..f32daa3
--- /dev/null
+++ b/data/coverity/model.c
@@ -0,0 +1,26 @@
1/*
2 * Coverity Model - not a real source file.
3 *
4 * See https://scan.coverity.com/tune
5 * See https://scan.coverity.com/models
6 *
7 * Coverity doesn't detect changes to this file, update manually at:
8 *
9 * https://scan.coverity.com/projects/enlightenment-foundation-libraries?tab=analysis_settings
10 */
11
12typedef struct {
13 int fd;
14} Eo;
15
16/* force Coverity to understand these take ownership of fd */
17
18void efl_loop_fd_set(Eo *obj, int fd)
19{
20 obj->fd = fd;
21}
22
23void efl_loop_fd_file_set(Eo *obj, int fd)
24{
25 obj->fd = fd;
26}