Index: trunk/psLib/src/sys/psError.h
===================================================================
--- trunk/psLib/src/sys/psError.h	(revision 8231)
+++ trunk/psLib/src/sys/psError.h	(revision 8627)
@@ -12,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:11:25 $
+ *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -92,9 +92,18 @@
  *
  */
+#ifdef __GNUC__
 void psErrorStackPrint(
     FILE* fd,                          ///< destination file descriptor
-    const char* format,                   ///< printf-style format of header line
-    ...                                ///< any parameters required in fmt
-);
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+) __attribute__((format(printf, 2, 3)));
+#else // __GNUC__
+void psErrorStackPrint(
+    FILE* fd,                          ///< destination file descriptor
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+);
+#endif // __GNUC__
+
 
 #ifndef SWIG
@@ -155,4 +164,5 @@
  *  @return psErrorcode    the given error code
  */
+#ifdef __GNUC__
 psErrorCode p_psError(
     const char* filename,              ///< file name
@@ -163,5 +173,16 @@
     const char* format,                ///< printf-style format of header line
     ...                                ///< any parameters required in fmt
-);
+) __attribute__((format(printf, 6, 7)));
+#else // __GNUC__
+psErrorCode p_psError(
+    const char* filename,              ///< file name
+    unsigned int lineno,               ///< line number in file
+    const char* func,                  ///< function name
+    psErrorCode code,                  ///< Error class code
+    bool new,                          ///< true if error originates at this location
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+);
+#endif // __GNUC__
 
 /** Logs a warning message.
@@ -172,11 +193,21 @@
  *
 */
+#ifdef __GNUC__
 void p_psWarning(
     const char* file,                  ///< file name
     int lineno,                        ///< line number in file
     const char* func,                  ///< function name
-    const char* fmt,                   ///< printf-style format of header line
-    ...                                ///< any parameters required in fmt
-);
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+) __attribute__((format(printf, 4, 5)));
+#else // __GNUC__
+void p_psWarning(
+    const char* file,                  ///< file name
+    int lineno,                        ///< line number in file
+    const char* func,                  ///< function name
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+);
+#endif // __GNUC__
 
 
