compiler:
- gcc
+osx_image: xcode10.2
+
addons:
apt:
packages:
homebrew:
packages:
- nkf
- - gcc@5
+ - gcc@8
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sh japanese/set_mac.sh ; fi
/* disable gcc's __attribute__((__warn_unused_result__)) since explicitly
discarding the result by casting to (void) is not accepted as a 'use' */
#define __warn_unused_result__ /*empty*/
+#ifndef MACOSX /*JP*//*\8dÅ\8bß\82ÌXCode\82Å\82Í\82±\82ê\82ª\8bó\82É\82È\82é\82Æ\83G\83\89\81[\82É\82È\82é*/
#define warn_unused_result /*empty*/
#endif
#endif
+#endif
#ifndef PRINTF_F
#define PRINTF_F(f, v)
-brew link --overwrite gcc@5
+brew link --overwrite gcc@8
find . -type f -name '*.c' -or -name '*.h'|xargs -n1 nkf -Sw --cp932 --overwrite
sh sys/unix/setup.sh sys/unix/hints/macosx10.10
# build to run in the source tree - primarily for development. Build with "make all"
#WANT_SOURCE_INSTALL=1
-CC=gcc-5
-CFLAGS+=-fexec-charset=cp932 -Wno-comment -Wno-unused-parameter -Wno-overlength-strings
+CC=gcc-8
+CFLAGS+=-fexec-charset=cp932 -Wno-comment -Wno-unused-parameter -Wno-overlength-strings -Wno-format-overflow
# At the moment this is just for debugging, but in the future it could be
# useful for other things. Requires SYSCF and an ANSI compiler.