OSDN Git Service

apply #39273
[jnethack/source.git] / sys / unix / unixmain.c
index 0dde12e..4762eb8 100644 (file)
@@ -64,6 +64,10 @@ char *argv[];
 
     sys_early_init();
 
+#if 1 /*JP*//* iconv\82Ì\8f\89\8aú\89»\82Ì\82½\82ß\82É\88ê\93x\82Í\8cÄ\82Ñ\8fo\82·\95K\97v\82ª\82 \82é */
+    setkcode('U');
+#endif
+
 #ifdef XI18N
     setlocale(LC_ALL, "");
 #endif
@@ -508,11 +512,10 @@ boolean wr;
 #endif
         ) {
 #ifdef SECURE
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-result"
+_pragma_ignore(-Wunused-result)
         (void) setgid(getgid());
         (void) setuid(getuid()); /* Ron Wessels */
-#pragma GCC diagnostic pop
+_pragma_pop
 #endif
     } else {
         /* non-default data files is a sign that scores may not be