summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2015-05-12 09:39:13 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2015-05-13 10:02:47 +0200
commitf38ec6dfdf0c564ab87f5aa809ad9785bc7e3bcc (patch)
tree224ace23a72fd9309bd3bc5541d9eaf0333f94b7 /maint.mk
parent4282ef65bf91122376f8e49c630a36a3f8a116b1 (diff)
downloadostree-f38ec6dfdf0c564ab87f5aa809ad9785bc7e3bcc.tar.gz
syntax-check: add syntactic rule to prohibit gs_unref_*
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index ff5400fe..9b773570 100644
--- a/maint.mk
+++ b/maint.mk
@@ -1032,6 +1032,11 @@ sc_const_long_option:
halt='add "const" to the above declarations' \
$(_sc_search_regexp)
+sc_prohibit_gs_unref:
+ @prohibit='\bgs_unref_(keyfile|variant*|ptrarray|hashtable|bytes|object)\b' \
+ halt="do not use gs_unref_*; use g_autoptr instead" \
+ $(_sc_search_regexp)
+
NEWS_hash = \
$$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
$(srcdir)/NEWS \