mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-20 00:49:30 +01:00
Merge pull request #28 from xoddark/Werror_write-strings
Fix write-strings warning
This commit is contained in:
@@ -129,7 +129,7 @@ typedef enum {
|
||||
// punctuation
|
||||
typedef struct punctuation_s
|
||||
{
|
||||
char *p; // punctuation character(s)
|
||||
const char *p; // punctuation character(s)
|
||||
int n; // punctuation id
|
||||
} punctuation_t;
|
||||
|
||||
|
||||
@@ -625,7 +625,7 @@ void idParser::AddBuiltinDefines( void ) {
|
||||
define_t *define;
|
||||
struct builtin
|
||||
{
|
||||
char *string;
|
||||
const char *string;
|
||||
int id;
|
||||
} builtin[] = {
|
||||
{ "__LINE__", BUILTIN_LINE },
|
||||
|
||||
@@ -312,7 +312,7 @@ TIME_TYPE time_in_millisec( void ) {
|
||||
PrintClocks
|
||||
============
|
||||
*/
|
||||
void PrintClocks( char *string, int dataCount, int clocks, int otherClocks = 0 ) {
|
||||
void PrintClocks( const char *string, int dataCount, int clocks, int otherClocks = 0 ) {
|
||||
int i;
|
||||
|
||||
idLib::common->Printf( string );
|
||||
|
||||
Reference in New Issue
Block a user