Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6674226
Votes 0
Synopsis Warning errors in freetypecheck
Category java:build
Reported Against
Release Fixed 7(b25)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 12-MAR-2008
Description
gnumake[4]: Entering directory `/BUILD_AREA/jdk7/jdk/make/tools/freetypecheck'
freetypecheck.c:35: warning: first argument of `main' should be `int'
freetypecheck.c:35: warning: second argument of `main' should be `char **'
gnumake[4]: Leaving directory `/BUILD_AREA/jdk7/jdk/make/tools/freetypecheck'
Posted Date : 2008-03-12 00:25:05.0

On linux 64bit:

freetypecheck.c:35: warning: first argument of `main' should be `int'
freetypecheck.c:35: warning: second argument of `main' should be `char **'
freetypecheck.c: In function `main':
freetypecheck.c:39: warning: implicit declaration of function `sprintf'
freetypecheck.c:41: warning: implicit declaration of function `printf'
freetypecheck.c:45: warning: implicit declaration of function `strcmp'
Posted Date : 2008-03-12 00:40:25.0
Work Around
N/A
Evaluation
Test to sanity test program needs some minor changes to prevent compiler warnings.
Posted Date : 2008-03-12 20:47:13.0

diff --git a/make/tools/freetypecheck/freetypecheck.c b/make/tools/freetypecheck/freetypecheck.c
--- a/make/tools/freetypecheck/freetypecheck.c
+++ b/make/tools/freetypecheck/freetypecheck.c
@@ -26,13 +26,16 @@
 /* Test program for freetype sanity check.
    Prints "Failed" messages to STDOUT if check fails. */
 
+#include <stdio.h>
+#include <string.h>
+
 #include "ft2build.h"
 #include FT_FREETYPE_H
 
 #define QUOTEMACRO(x) QUOTEME(x)
 #define QUOTEME(x) #x
 
-int main(char** argv, int argc) {
+int main(int argc, char** argv) {
    char v[50];
    FT_Int major, minor, patch;
    FT_Library library;
Posted Date : 2008-03-13 01:20:05.0

http://hg.openjdk.java.net/jdk7/build/jdk/rev/f1c168caf94f
Posted Date : 2008-03-18 19:35:12.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang