View Issue Details

IDProjectCategoryView StatusLast Update
0002702unrealinstallingpublic2007-04-16 12:32
Reporterpepolez Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version3.2.3 
Summary0002702: '...differ in signedness' while compiling
Descriptionwhile compiling, i noticed many times that the C interpereter complained about errors such as this:

random.c: In function 'init_random':
random.c:191: warning: pointer targets in passing argument 2 of 'RAND_query_egd_bytes' differ in signedness

while these errors are not fatal and do not stop the compiling or configuring, i figured it'd be best to mention them
Steps To Reproduce-get unreal
-unpack unreal
-run ./Config as normal

these errors will appear similar to the one abobve
3rd party modules

Activities

syzop

2005-11-19 20:07

administrator   ~0010771

Thanks for the report.

Though, this has been fixed in CVS already. We now turn these (useless and annoying) warnings automatically off :)

pepolez

2005-11-19 21:35

reporter   ~0010779

it's fixed for most files in the development version avaliable on CVS, but it still bitches about tre-parse.c (and only tre-parse.c now)

tre-parse.c: In function 'tre_expand_macro':
tre-parse.c:99: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
tre-parse.c:99: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness
tre-parse.c: In function 'tre_parse_bracket_items':
tre-parse.c:354: warning: pointer targets in passing argument 2 of '__builtin_strncpy' differ in signedness
tre-parse.c: In function 'tre_parse':
tre-parse.c:1369: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness


../lib/tre-parse.c: In function 'tre_expand_macro':
../lib/tre-parse.c:99: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
../lib/tre-parse.c:99: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness
../lib/tre-parse.c: In function 'tre_parse_bracket_items':
../lib/tre-parse.c:354: warning: pointer targets in passing argument 2 of '__builtin_strncpy' differ in signedness
../lib/tre-parse.c: In function 'tre_parse':
../lib/tre-parse.c:1369: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness

syzop

2005-11-20 09:28

administrator   ~0010781

hm, yeah... We use the unmodified TRE library, so it's their configure that would have to deal with this.
I'll see if I can contact the author ;).

I don't understand why the GCC folks put this on by default (even without -Wall)... like if a strlen() operation on an unsigned character string is a problem... GOD... *wants to stab the person that turned this on by default* ;)

Issue History

Date Modified Username Field Change
2005-11-19 19:58 pepolez New Issue
2005-11-19 20:07 syzop Status new => closed
2005-11-19 20:07 syzop Note Added: 0010771
2005-11-19 20:07 syzop Resolution open => no change required
2005-11-19 21:35 pepolez Status closed => feedback
2005-11-19 21:35 pepolez Resolution no change required => reopened
2005-11-19 21:35 pepolez Note Added: 0010779
2005-11-20 09:28 syzop Note Added: 0010781
2007-04-16 12:32 stskeeps Status feedback => closed
2007-04-16 12:32 stskeeps Resolution reopened => no change required