From 63210d28a18c583b60150bace2469605596dff95 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 20 Oct 2010 23:52:20 +0200 Subject: [PATCH] check-style should warn about g_list_nth in loops --- tools/check-style | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/check-style b/tools/check-style index fc752fce..b6076d82 100755 --- a/tools/check-style +++ b/tools/check-style @@ -47,6 +47,7 @@ violations = [ ['asctime|ctime|getgrgid|getprgnam|getlogin \ |getpwnam|getpwuid|gmtime|localtime \ |rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'], + ['while.*g_list_nth', 'Use g_list_next() instead of g_list_nth'], ] # No validation for strings, comments, includes omissions = [ -- 2.39.5