rubl
Crazy Mango Extraordinaire
The wondering type
Posts: 23,997
Likes: 9,333
|
Post by rubl on Sept 5, 2015 9:14:07 GMT 7
Websites and webpages are fragile. PHP is deemed easy by some, but as usual one needs to know what one is doing.
I just stumbled over a page which ended with
"Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/islegenw/www/include/finir_cache.php on line 42
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/islegenw/www/include/finir_cache.php on line 44"
|
|
Deleted
Deleted Member
Posts: 0
Likes:
|
Post by Deleted on Sept 5, 2015 9:31:30 GMT 7
The aliens are after you Uncle Rubl, stay safe, they kidnap you and do anal probes, then release you into the wider community to star in that zombie fest 'The Walking Dead'. That's a rather dashing av, very nice.
|
|
rubl
Crazy Mango Extraordinaire
The wondering type
Posts: 23,997
Likes: 9,333
|
Post by rubl on Sept 5, 2015 15:52:06 GMT 7
A few example of compiler warnings on various UNIX like systems
../src/conversions.c(106) : warning C4135: conversion between different integral types ../src/strnstr.c(22) : warning C4018: '<' : signed/unsigned mismatch ../src/test_cli.c(265) : warning C4016: 'signal' : no function return type, using int as default
cc: Info: ../src/general.c, line 2: A static variable is declared but never referenced in this module. (unrefsdecl) cc: Info: ../src/print_info.c, line 481: The Compaq C compiler conforms to the C standard and will give this constant an unsigned type. Some older compilers may give this constant a signed type. (hexoctunsign)
"../src/hexacc.c", line 92, procedure CVT_to_unpack: warning #20200-D: Potential null pointer dereference is detected (null definition:../src/hexacc.c, line 92) "../src/multiply.c", line 68: warning #4229-D: 64 bit migration: conversion from "long" to "int" may truncate value
"../src/test_cli.c", line 436: warning #2111-D: statement is unreachable
|
|
me
Crazy Mango Extraordinaire
Posts: 6,342
Likes: 3,980
|
Post by me on Sept 6, 2015 1:20:59 GMT 7
A few example of compiler warnings on various UNIX like systems ../src/conversions.c(106) : warning C4135: conversion between different integral types ../src/strnstr.c(22) : warning C4018: '<' : signed/unsigned mismatch ../src/test_cli.c(265) : warning C4016: 'signal' : no function return type, using int as default cc: Info: ../src/general.c, line 2: A static variable is declared but never referenced in this module. (unrefsdecl) cc: Info: ../src/print_info.c, line 481: The Compaq C compiler conforms to the C standard and will give this constant an unsigned type. Some older compilers may give this constant a signed type. (hexoctunsign) "../src/hexacc.c", line 92, procedure CVT_to_unpack: warning #20200-D: Potential null pointer dereference is detected (null definition:../src/hexacc.c, line 92) "../src/multiply.c", line 68: warning #4229-D: 64 bit migration: conversion from "long" to "int" may truncate value "../src/test_cli.c", line 436: warning #2111-D: statement is unreachable No divide by 0?
|
|
Deleted
Deleted Member
Posts: 0
Likes:
|
Post by Deleted on Sept 6, 2015 5:37:19 GMT 7
When that happens I start cutting my facial hair with scissors.
|
|
rubl
Crazy Mango Extraordinaire
The wondering type
Posts: 23,997
Likes: 9,333
|
Post by rubl on Sept 6, 2015 12:02:39 GMT 7
A few example of compiler warnings on various UNIX like systems ../src/conversions.c(106) : warning C4135: conversion between different integral types ../src/strnstr.c(22) : warning C4018: '<' : signed/unsigned mismatch ../src/test_cli.c(265) : warning C4016: 'signal' : no function return type, using int as default cc: Info: ../src/general.c, line 2: A static variable is declared but never referenced in this module. (unrefsdecl) cc: Info: ../src/print_info.c, line 481: The Compaq C compiler conforms to the C standard and will give this constant an unsigned type. Some older compilers may give this constant a signed type. (hexoctunsign) "../src/hexacc.c", line 92, procedure CVT_to_unpack: warning #20200-D: Potential null pointer dereference is detected (null definition:../src/hexacc.c, line 92) "../src/multiply.c", line 68: warning #4229-D: 64 bit migration: conversion from "long" to "int" may truncate value "../src/test_cli.c", line 436: warning #2111-D: statement is unreachable No divide by 0? "divide by 0" tends to be a runtime error. I listed compile time errors. Some compilers warn for using a variable before it's initialised. Trying to get rid of wrarning in your compilation prevents a lot of problems. Interesting is that lots of programmers like to switch generation of warnings to either the lowest level possible or just completely off.
|
|