diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-11-16 11:54:42 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-11-16 11:54:42 +0000 |
commit | ed6a4bf7b100677d2f500185436d7f3981a7598d (patch) | |
tree | 1774861a008272479582947ba4a588f13959159f /Build/source/texk/tex4htk | |
parent | a97b2a3b330df0814e1e46d9479edb3188bd878c (diff) |
pdftex and tex4htk compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@20457 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/tex4htk')
-rw-r--r-- | Build/source/texk/tex4htk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/tex4htk/t4ht.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/texk/tex4htk/ChangeLog b/Build/source/texk/tex4htk/ChangeLog index f67f794579a..6069325e8a8 100644 --- a/Build/source/texk/tex4htk/ChangeLog +++ b/Build/source/texk/tex4htk/ChangeLog @@ -1,3 +1,8 @@ +2010-11-16 Peter Breitenlohner <peb@mppmu.mpg.de> + + * t4ht.c (main): Initialize addr and media in order to avoid + compiler warnings. Use '#if 0' to skip unreachable code. + 2010-11-12 Peter Breitenlohner <peb@mppmu.mpg.de> * t4ht.c (filterGifScript): Avoid 'filtered_script might be used diff --git a/Build/source/texk/tex4htk/t4ht.c b/Build/source/texk/tex4htk/t4ht.c index cb5091404eb..dd6a898d5a9 100644 --- a/Build/source/texk/tex4htk/t4ht.c +++ b/Build/source/texk/tex4htk/t4ht.c @@ -521,7 +521,7 @@ static FILE* f_open( ARG_II(const char*,const char*) ); static FILE* f_home_open( ARG_II(const char*,const char*) ); -static FILE* open_file( const ARG_II(C_CHAR *, const C_CHAR *) ); +static FILE* open_file( ARG_II(const C_CHAR *, const C_CHAR *) ); static void err_i( ARG_I(int) ); @@ -2039,7 +2039,7 @@ if( check_tex4ht_c_err ){ { Q_CHAR *file_name, file_mode[5]; -int i, start_loc, end_loc, addr; +int i, start_loc, end_loc, addr = 0; char rec_op, *ch; static struct files_rec *to_rec, *from_rec, *opened_files = (struct files_rec *) 0, @@ -2362,7 +2362,7 @@ if( status ){ if( status ){ Q_CHAR *key, *body, *media; - body = key = match[1]; + media = body = key = match[1]; while( *body && (*body != ' ') ){ body++; } if( *body == ' ' ){ media = body; *(body++) = '\0'; } @@ -2404,6 +2404,7 @@ if( debug ){ } } +#if 0 /* unreachable */ else if( last_rec ){ last_rec->body = (Q_CHAR *) r_alloc((void *) last_rec->body, (size_t) strlen((char *) last_rec->body) @@ -2416,6 +2417,7 @@ if( debug ){ } } +#endif /* 0, unreachable */ } |