Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fixing deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Sep 23, 2015
1 parent 6067d06 commit 456691e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/coxeter3/patches/directories.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
*/

namespace directories {
char* const COXMATRIX_DIR = "SAGE_LOCAL/coxeter/coxeter_matrices";
char* const HEADER_DIR = "SAGE_LOCAL/coxeter/headers";
char* const MESSAGE_DIR = "SAGE_LOCAL/coxeter/messages";
const char* const COXMATRIX_DIR = "SAGE_LOCAL/coxeter/coxeter_matrices";
const char* const HEADER_DIR = "SAGE_LOCAL/coxeter/headers";
const char* const MESSAGE_DIR = "SAGE_LOCAL/coxeter/messages";
};

#endif
36 changes: 36 additions & 0 deletions build/pkgs/coxeter3/patches/warnings.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff -druN a/error.cpp b/error.cpp
--- a/error.cpp
+++ b/error.cpp
@@ -250,7 +250,7 @@ void error::Error(int number, ... )
notCoxelt();
break;
case NOT_DESCENT: {
- const char *const str = va_arg(ap,const char *const);
+ const char *str = va_arg(ap,const char *);
notDescent(str);
break;
}
@@ -280,7 +280,7 @@ void error::Error(int number, ... )
parNbrOverflow();
break;
case PARSE_ERROR: {
- const char *const str = va_arg(ap,const char *const);
+ const char *str = va_arg(ap,const char *);
parseError(str);
}
break;
diff -druN a/version.h b/version.h
--- a/version.h
+++ b/version.h
@@ -9,8 +10,8 @@
#define VERSION_H

namespace version {
- char* const NAME = "Coxeter";
- char* const VERSION = "3.0_beta2";
+ const char* const NAME = "Coxeter";
+ const char* const VERSION = "3.1.sage";
};

#endif

0 comments on commit 456691e

Please sign in to comment.