coverity: add modeling file to reduce false positives.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 19 Dec 2016 13:09:02 +0000 (11:09 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 19 Dec 2016 13:09:02 +0000 (11:09 -0200)
data/coverity/model.c [new file with mode: 0644]

diff --git a/data/coverity/model.c b/data/coverity/model.c
new file mode 100644 (file)
index 0000000..f32daa3
--- /dev/null
@@ -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;
+}