Index: /trunk/psLib/src/sys/psString.c
===================================================================
--- /trunk/psLib/src/sys/psString.c	(revision 40550)
+++ /trunk/psLib/src/sys/psString.c	(revision 40551)
@@ -496,2 +496,7 @@
 }
 
+// several snprintf statements below my truncate their output
+// gcc (since 8.1) warns if the output may be truncated.
+// the following NOOP function is used to fool the compiler
+// see ps_snprintf_nowarn in psString.h
+void psNOOP (void) { }
Index: /trunk/psLib/src/sys/psString.h
===================================================================
--- /trunk/psLib/src/sys/psString.h	(revision 40550)
+++ /trunk/psLib/src/sys/psString.h	(revision 40551)
@@ -40,4 +40,17 @@
 #define PS_FILE_LINE p_psFileLine(__FILE__,__LINE__)
 
+// gcc (since 8.1) warns if the output may be truncated by snprint.
+// since that is sometimes a desired behavior, this version of snprintf
+// is defined to fool the compiler about this warning:
+// the following NOOP function is used to fool the compiler
+// see snprintf_nowarn in ohana.h
+#define ps_snprintf_nowarn(...) (snprintf(__VA_ARGS__) < 0 ? psNOOP() : 0)
+void psNOOP (void);
+
+// some constants to use in snprintf statements and variable definitions to ensure
+// consistency
+# define PS_SMALLWORD 16
+# define PS_BIGWORD 128
+
 /** Allocates a new psString.
  *
