Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 07:09:38 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475863 - head/games/columns/files
Message-ID:  <201807300709.w6U79cR4051600@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Jul 30 07:09:38 2018
New Revision: 475863
URL: https://svnweb.freebsd.org/changeset/ports/475863

Log:
  games/colums: Fix build with Clang 6
  
  columns.cc:1363:19: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
          printf("Columns "VERSION" - Copyright (C) 1999,2000 Daniel Heck\n");
                           ^
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/columns-1.2b_9.log

Modified:
  head/games/columns/files/patch-columns.cc

Modified: head/games/columns/files/patch-columns.cc
==============================================================================
--- head/games/columns/files/patch-columns.cc	Mon Jul 30 06:11:54 2018	(r475862)
+++ head/games/columns/files/patch-columns.cc	Mon Jul 30 07:09:38 2018	(r475863)
@@ -20,7 +20,7 @@
      }
    
      // read character chunks one by one
-@@ -357,7 +357,7 @@ highscore_entry highscore[HIGHSCORE_ENTR
+@@ -357,7 +357,7 @@ highscore_entry highscore[HIGHSCORE_ENTRIES];
  
  void highscore_save()
  {
@@ -38,7 +38,13 @@
      FILE *fp = fopen(fname,"rb");
      if (fp != NULL) {
  	for (int i=0; i<HIGHSCORE_ENTRIES; i++) {
-@@ -1365,6 +1365,7 @@ void eval_args(int argc, char **argv)
+@@ -1360,11 +1360,12 @@ void eval_args(int argc, char **argv)
+ 	}
+     }
+     if (show_usage) {
+-	printf("Columns "VERSION" - Copyright (C) 1999,2000 Daniel Heck\n");
++	printf("Columns " VERSION " - Copyright (C) 1999,2000 Daniel Heck\n");
+ 	printf("usage: columns [--nosound] [--bg=filename.bmp]\n\n");
      }
  }
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807300709.w6U79cR4051600>