Skip to content

Commit cd3813a

Browse files
committed
Build: devel: Disable Coverity's inconsistent union warnings
g_clear_pointer() is triggering these warnings. When we require GLib 2.58 or later, we can probably re-enable the warning. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent a49b497 commit cd3813a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

devel/Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,15 @@ coverity: $(COVTAR)
7070
# of them are designed so that things execute in the proper order (which is
7171
# not the same as GNU make's order-only prerequisites).
7272

73+
# @COMPAT Prior to GLib 2.58, the implementation of g_clear_pointer()
74+
# triggers the INCONSISTENT_UNION_ACCESS warning
7375
.PHONY: coverity-analyze
7476
coverity-analyze: $(COVERITY_DIR)
7577
@echo ""
7678
@echo "Analyzing (waiting for coverity license if necessary) ..."
7779
cd $(top_builddir) && cov-analyze --dir "$<" --wait-for-license \
78-
--security --aggressiveness-level "$(COVLEVEL)"
80+
--security --aggressiveness-level "$(COVLEVEL)" \
81+
--disable INCONSISTENT_UNION_ACCESS
7982

8083
.PHONY: $(COVEMACS)
8184
$(COVEMACS): coverity-analyze

0 commit comments

Comments
 (0)