Red Hat Bugzilla – Bug 105840
mysql bad source code
Last modified: 2007-04-18 12:57:57 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I)
Description of problem:
I just tried to compile package mysql-3.23.54a-11 from Redhat 9.0
with compiler flag -Wall.
The compiler said
log0recv.c:1384: warning: too few arguments for format
log0recv.c:1401: warning: too few arguments for format
log0recv.c:1429: warning: too few arguments for format
The source codes are
"InnoDB: Error: cannot open %lu'th data file %s\n", nth_file);
"InnoDB: Error: cannot read page no %lu from %lu'th data file %s\n",
"InnoDB: Error: cannot write page no %lu to %lu'th data file %s\n",
All these printf statements are clearly wrong at compile time.
You may consider it prudent to fix them.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. compile with -Wall.
This is a duplicate of bug #82189 (which you opened against 8.0). Anyway, the
MySQL folks are aware of the problem, have patched it in 4.0 but do not feel
the need to patch it in 3.23.x. Please refer to 82189 for the proper MySQL
*** This bug has been marked as a duplicate of 82189 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.