]> granicus.if.org Git - curl/commitdiff
tests: checksrc compliance
authorJay Satiro <raysatiro@yahoo.com>
Mon, 19 Dec 2016 07:31:59 +0000 (02:31 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 19 Dec 2016 07:31:59 +0000 (02:31 -0500)
lib/checksrc.pl
src/tool_hugehelp.c.cvs
tests/libtest/test.h
tests/server/util.h

index c56e9c8416e888ee97e3feb09f4e1e0052f41f8c..7857bbfc784b60c25723c4ea1e456b98d406468d 100755 (executable)
@@ -57,7 +57,8 @@ my %warnings = (
     'UNUSEDIGNORE'     => 'a warning ignore was not used',
     'OPENCOMMENT'      => 'file ended with a /* comment still "open"',
     'ASTERISKSPACE'    => 'pointer declared with space after asterisk',
-    'ASTERISKNOSPACE'  => 'pointer declared without space before asterisk'
+    'ASTERISKNOSPACE'  => 'pointer declared without space before asterisk',
+    'ASSIGNWITHINCONDITION'  => 'assignment within conditional expression'
     );
 
 sub readwhitelist {
index 2499a4836e8e9f1ae5fe3e1ba0420cdf74ca0f8c..6ec5e9149ad547c80927cbc9ee2bd8a4d7bbe6be 100644 (file)
@@ -25,5 +25,5 @@
 
 void hugehelp(void)
 {
-  puts ( "This is a silly replacement for the actual file.");
+  puts("This is a silly replacement for the actual file.");
 }
index 9fd33aa72991bc246c16133617b06e001509b027..3da03b8381aa9b6b40bc21be7263a7b9f1b881a5 100644 (file)
@@ -20,6 +20,8 @@
  *
  ***************************************************************************/
 
+/* !checksrc! disable ASSIGNWITHINCONDITION all */
+
 /* Now include the curl_setup.h file from libcurl's private libdir (the source
    version, but that might include "curl_config.h" from the build dir so we
    need both of them in the include path), so that we get good in-depth
index c90fcdf32ade97b63f853c23d03d008e4ad71b89..a2a56baddc5eef4f0c3cc5fb22ddf38362eff5f7 100644 (file)
@@ -44,7 +44,7 @@ extern const char *serverlogfile;
 
 #undef perror
 #define perror(m) win32_perror(m)
-void win32_perror (const char *msg);
+void win32_perror(const char *msg);
 #endif  /* WIN32 */
 
 #ifdef USE_WINSOCK