leohns / skipfish

Automatically exported from code.google.com/p/skipfish
Apache License 2.0
0 stars 0 forks source link

[patch] gcc warnings on FreeBSD #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Hi Michal,

Attached are two small patches to fix GCC warnings on FreeBSD 8.0-STABLE:

cc  -L/usr/local/lib/ skipfish.c -o skipfish -O3 -Wno-format -Wall
-funsigned-char -g -ggdb -I/usr/local/include/  -I/opt/local/include/ -O2
-fno-strict-aliasing -pipe -s -funroll-loops -fomit-frame-pointer
-march=pentium4m -D_FORTIFY_SOURCE=0  http_client.c database.c crawler.c
analysis.c report.c -lcrypto -lssl -lidn -lz
analysis.c: In function 'maybe_xsrf':
analysis.c:397: warning: format '%lu' expects type 'long unsigned int', but
argument 3 has type 'int'
report.c: In function 'copy_static_code':
report.c:744: warning: passing argument 3 of 'scandir' from incompatible
pointer type

Thanks,
Niels

Original issue reported on code.google.com by niels0...@gmail.com on 7 Apr 2010 at 2:22

Attachments:

GoogleCodeExporter commented 8 years ago
I fixed the time(0) warning. The other patch introduces warnings on Linux, and 
feels 
just wrong - the parameter to the filter function should be const?

Original comment by lcam...@gmail.com on 8 Apr 2010 at 10:39