diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2015-05-12 09:39:13 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2015-05-13 10:02:47 +0200 |
commit | f38ec6dfdf0c564ab87f5aa809ad9785bc7e3bcc (patch) | |
tree | 224ace23a72fd9309bd3bc5541d9eaf0333f94b7 /maint.mk | |
parent | 4282ef65bf91122376f8e49c630a36a3f8a116b1 (diff) | |
download | ostree-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.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 \ |