# HG changeset patch # User alanb # Date 1392300492 0 # Node ID 0d4028fa11bab7be6f2f1a7fae43f493d6c731fb # Parent 2d946ec6c4f8bd9864258c329eb51aee3a9b0604 8034856: gcc warnings compiling src/solaris/native/sun/security/pkcs11 8034857: gcc warnings compiling src/solaris/native/sun/management Reviewed-by: sla, mullan diff -r 2d946ec6c4f8 -r 0d4028fa11ba src/share/instrument/JarFacade.c --- a/src/share/instrument/JarFacade.c Tue May 04 05:57:24 2021 +0100 +++ b/src/share/instrument/JarFacade.c Thu Feb 13 14:08:12 2014 +0000 @@ -33,6 +33,7 @@ #endif /* _WIN32 */ #include #include +#include #include "jni.h" #include "manifest_info.h" diff -r 2d946ec6c4f8 -r 0d4028fa11ba src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h --- a/src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h Tue May 04 05:57:24 2021 +0100 +++ b/src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h Thu Feb 13 14:08:12 2014 +0000 @@ -55,6 +55,9 @@ * @author Martin Schlaeffer */ +#ifndef _PKCS11WRAPPER_H +#define _PKCS11WRAPPER_H 1 + /* disable asserts in product mode */ #ifndef DEBUG #ifndef NDEBUG @@ -476,3 +479,5 @@ #define free(c) (p11free((c), THIS_FILE, __LINE__)) #endif + +#endif /* _PKCS11WRAPPER_H */ diff -r 2d946ec6c4f8 -r 0d4028fa11ba src/solaris/native/sun/management/LinuxOperatingSystem.c --- a/src/solaris/native/sun/management/LinuxOperatingSystem.c Tue May 04 05:57:24 2021 +0100 +++ b/src/solaris/native/sun/management/LinuxOperatingSystem.c Thu Feb 13 14:08:12 2014 +0000 @@ -35,6 +35,7 @@ #include #include #include +#include #include "sun_management_OperatingSystemImpl.h" struct ticks { @@ -57,7 +58,7 @@ ticks *cpus; } counters; -#define DEC_64 "%lld" +#define DEC_64 "%"SCNd64 static void next_line(FILE *f) { while (fgetc(f) != '\n'); diff -r 2d946ec6c4f8 -r 0d4028fa11ba src/solaris/native/sun/security/pkcs11/j2secmod_md.c --- a/src/solaris/native/sun/security/pkcs11/j2secmod_md.c Tue May 04 05:57:24 2021 +0100 +++ b/src/solaris/native/sun/security/pkcs11/j2secmod_md.c Thu Feb 13 14:08:12 2014 +0000 @@ -32,6 +32,7 @@ #include #include "j2secmod.h" +#include "wrapper/pkcs11wrapper.h" void *findFunction(JNIEnv *env, jlong jHandle, const char *functionName) { void *hModule = (void*)jlong_to_ptr(jHandle); diff -r 2d946ec6c4f8 -r 0d4028fa11ba src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h --- a/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h Tue May 04 05:57:24 2021 +0100 +++ b/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h Thu Feb 13 14:08:12 2014 +0000 @@ -56,6 +56,9 @@ /* defines for UNIX platforms *************************************************/ +#ifndef _P11_MD_H +#define _P11_MD_H 1 + #define CK_PTR * #define CK_DEFINE_FUNCTION(returnType, name) returnType name #define CK_DECLARE_FUNCTION(returnType, name) returnType name @@ -83,3 +86,5 @@ }; typedef struct ModuleData ModuleData; + +#endif /* _P11_MD_H */