Skip to content

Commit ba9c207

Browse files
committed
fix warnings
1 parent bab75f7 commit ba9c207

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/mad_node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ advance_to_pos(char* table, int* t_pos)
632632
/* advances current_node to node at t_pos in table */
633633
{
634634
struct table* t;
635-
int pos, cnt = 0, ret = 0;
635+
int cnt = 0, ret = 0;
636636
mycpy(c_dum->c, table);
637637
if ((t = find_table(c_dum->c)))
638638
{

src/mad_spch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ static struct table* bb6d_ixy;
55
void
66
make_bb6d_ixy(int* bb6d_ixy_max_rows)
77
{
8-
int k, pos;
8+
int k;
99
struct table* table = find_table("bb6d_ixy");
1010

1111
if (table)

src/mad_str.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ stolower_nq(char* s)
185185
}
186186

187187
char*
188-
strip(char* name)
188+
strip(const char* name)
189189
/* strip ':' and following off */
190190
{
191191
static char tmp_key[10*NAME_L];

src/mad_str.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int mysplit(char* buf, struct char_p_array* list);
1818

1919
void conv_char(const char* string, struct int_array* tint);
2020
void stolower_nq(char* s);
21-
char* strip(char* name);
21+
char* strip(const char* name); /* warning: use permanent local buffer, make copies! */
2222
int supp_lt(char* inbuf, int flag);
2323
void supp_mul_char(char c, char* string);
2424
char* supp_tb(char* string); /* suppress trailing blanks in string */

src/mad_track.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ pro_track(struct in_cmd* cmd)
325325
void
326326
track_pteigen(double* eigen)
327327
{
328-
int i, j, pos;
328+
int i, j;
329329
struct table* t;
330330

331331
if ((t = find_table("trackone"))) {
@@ -493,7 +493,7 @@ getcurrentcmdname(char* string)
493493

494494
const char* getcurrentelementname()
495495
{
496-
/*returns name of the current element
496+
/*returns name of the current element
497497
Used in rviewer plugin
498498
*/
499499

0 commit comments

Comments
 (0)