diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-03 09:54:13 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-09 12:14:11 +0200 |
commit | 05b3d1e1f9d5c63d0d01a9cecc3f04cae3191605 (patch) | |
tree | 6b880998d084ee84742dbd69ab5813c078055cff /tools | |
parent | 7f880d8ce0f605434929992ea429523ef586627b (diff) | |
download | telepathy-glib-05b3d1e1f9d5c63d0d01a9cecc3f04cae3191605.tar.gz |
check-c-style: don't check if GError are initialized
It just leads us to writing insanity like:
GError *error /* badger */;
Diffstat (limited to 'tools')
-rw-r--r-- | tools/check-c-style.sh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/check-c-style.sh b/tools/check-c-style.sh index 4330b1479..55834207a 100644 --- a/tools/check-c-style.sh +++ b/tools/check-c-style.sh @@ -3,13 +3,6 @@ fail=0 ( . "${tools_dir}"/check-misc.sh ) || fail=$? -if grep -n '^ *GError *\*[[:alpha:]_][[:alnum:]_]* *;' "$@" -then - echo "^^^ The above files contain uninitialized GError*s - they should be" - echo " initialized to NULL" - fail=1 -fi - # The first regex finds function calls like foo() (as opposed to foo ()). # It attempts to ignore string constants (may cause false negatives). # The second and third ignore block comments (gtkdoc uses foo() as markup). |