Skip to content

Commit

Permalink
Adding warnings to possibly bad code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrincayc committed Jan 19, 2024
1 parent d300824 commit 0a3309d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions term.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ extern char **environ, *tgoto(), *tgetstr();
char *termcap_ptr;

int termcap_putter(int ch) {
/* XXX: Should this check for any non-char values? */
*termcap_ptr++ = (char)ch;
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions xgraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void logofill(void);
return ret; \
} \
}
/* XXX: Can this be safely used? */
#define checkXnoreturn { \
if (have_x < 0) real_window_init(); \
if (!have_x) { \
Expand Down

0 comments on commit 0a3309d

Please sign in to comment.