Bug #5560 Compile error: Pointer arithmetic on array names not portable
Submitted: 14 Sep 2004 7:45 Modified: 20 Sep 2004 15:48
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1.5 OS:various Unix
Assigned to: Joerg Bruehe CPU Architecture:Any

[14 Sep 2004 7:45] Joerg Bruehe
File 'tests/client_test.c' does arithmetic on array name (line 10,128):
     bind[1].buffer= (void*) tm+1;

This fails on some compilers.

How to repeat:
Try to compile it on all build platforms.

Suggested fix:
Replace the line by:
   bind[1].buffer= &tm[1];
[20 Sep 2004 15:48] Joerg Bruehe
Patched like already proposed, done last week - but DB update is delayed.