mirror of https://github.com/moparisthebest/curl
tests: checksrc compliance
This commit is contained in:
parent
d00f2a8f2e
commit
c2402b6e02
|
@ -57,7 +57,8 @@ my %warnings = (
|
||||||
'UNUSEDIGNORE' => 'a warning ignore was not used',
|
'UNUSEDIGNORE' => 'a warning ignore was not used',
|
||||||
'OPENCOMMENT' => 'file ended with a /* comment still "open"',
|
'OPENCOMMENT' => 'file ended with a /* comment still "open"',
|
||||||
'ASTERISKSPACE' => 'pointer declared with space after asterisk',
|
'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 {
|
sub readwhitelist {
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
|
|
||||||
void hugehelp(void)
|
void hugehelp(void)
|
||||||
{
|
{
|
||||||
puts ( "This is a silly replacement for the actual file.");
|
puts("This is a silly replacement for the actual file.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* !checksrc! disable ASSIGNWITHINCONDITION all */
|
||||||
|
|
||||||
/* Now include the curl_setup.h file from libcurl's private libdir (the source
|
/* 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
|
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
|
need both of them in the include path), so that we get good in-depth
|
||||||
|
|
|
@ -44,7 +44,7 @@ extern const char *serverlogfile;
|
||||||
|
|
||||||
#undef perror
|
#undef perror
|
||||||
#define perror(m) win32_perror(m)
|
#define perror(m) win32_perror(m)
|
||||||
void win32_perror (const char *msg);
|
void win32_perror(const char *msg);
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
#ifdef USE_WINSOCK
|
#ifdef USE_WINSOCK
|
||||||
|
|
Loading…
Reference in New Issue