Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
filesystems
fcgi
gcc-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc-warnings.patch of Package fcgi
diff -ur src1/cgi-fcgi/cgi-fcgi.c fcgi2-2.4.2/cgi-fcgi/cgi-fcgi.c --- src1/cgi-fcgi/cgi-fcgi.c 2019-02-19 05:19:19.000000000 -0600 +++ fcgi2-2.4.2/cgi-fcgi/cgi-fcgi.c 2020-01-20 13:08:56.542680702 -0600 @@ -760,7 +760,7 @@ } if(OS_LibInit(stdinFds)) { - fprintf(stderr, "Error initializing OS library: %lu\n", OS_Errno); + fprintf(stderr, "Error initializing OS library: %lu\n", (unsigned long)OS_Errno); exit(0); } diff -ur src1/examples/threaded.c fcgi2-2.4.2/examples/threaded.c --- src1/examples/threaded.c 2019-02-19 05:19:19.000000000 -0600 +++ fcgi2-2.4.2/examples/threaded.c 2020-01-20 13:12:00.781238951 -0600 @@ -20,7 +20,8 @@ static void *doit(void *a) { - int rc, i, thread_id = (int)a; + int rc, i; + intptr_t thread_id = (intptr_t)a; pid_t pid = getpid(); FCGX_Request request; char *server_name; @@ -67,7 +68,7 @@ int main(void) { - int i; + intptr_t i; pthread_t id[THREAD_COUNT]; FCGX_Init(); diff -ur src1/libfcgi/fcgiapp.c fcgi2-2.4.2/libfcgi/fcgiapp.c --- src1/libfcgi/fcgiapp.c 2019-02-19 05:19:19.000000000 -0600 +++ fcgi2-2.4.2/libfcgi/fcgiapp.c 2020-01-20 13:03:48.885088557 -0600 @@ -470,6 +470,7 @@ specifierLength = 4; break; } + // FALLTHROUGH case 'L': case 'h': sizeModifier = op; @@ -572,6 +573,7 @@ CopyAndAdvance(&fmtBuffPtr, &p, 2); break; } + // FALLTHROUGH case 'L': case 'h': sizeModifier = *p; @@ -1714,7 +1716,7 @@ memcpy(((char *)(&header)) + headerLen, stream->rdNext, count); headerLen += count; stream->rdNext += count; - if(headerLen < sizeof(header)) { + if(headerLen < (int)sizeof(header)) { continue; }; headerLen = 0; diff -ur src1/libfcgi/os_unix.c fcgi2-2.4.2/libfcgi/os_unix.c --- src1/libfcgi/os_unix.c 2019-02-19 05:19:19.000000000 -0600 +++ fcgi2-2.4.2/libfcgi/os_unix.c 2020-01-20 13:11:12.277618502 -0600 @@ -110,11 +110,13 @@ static void OS_Sigusr1Handler(int signo) { + (void)signo; OS_ShutdownPending(); } static void OS_SigpipeHandler(int signo) { + (void)signo; ; } @@ -166,6 +168,7 @@ */ int OS_LibInit(int stdioFds[3]) { + (void)stdioFds; if(libInitialized) return 0; @@ -247,7 +250,7 @@ struct sockaddr_un *servAddrPtr, int *servAddrLen) { - int bindPathLen = strlen(bindPath); + size_t bindPathLen = strlen(bindPath); #ifdef HAVE_SOCKADDR_UN_SUN_LEN /* 4.3BSD Reno and later: BSDI, DEC */ if(bindPathLen >= sizeof(servAddrPtr->sun_path)) { @@ -1038,6 +1041,8 @@ return -1; #else + (void)sock; + (void)fail_on_intr; return 0; #endif } @@ -1076,6 +1081,7 @@ return -1; #else + (void)sock; return 0; #endif } @@ -1189,7 +1195,7 @@ #ifdef HAVE_SOCKLEN socklen_t len = sizeof(sa); #else - int len = sizeof(sa); + unsigned int len = sizeof(sa); #endif if (shutdownPending) break; /* There's a window here */ @@ -1290,7 +1296,7 @@ #ifdef HAVE_SOCKLEN socklen_t len = sizeof(sa); #else - int len = sizeof(sa); + unsigned int len = sizeof(sa); #endif errno = 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor