summaryrefslogtreecommitdiffstats
path: root/text-utils/pg.c
diff options
context:
space:
mode:
authorSami Kerola2012-10-08 09:08:15 +0200
committerKarel Zak2012-10-15 16:47:43 +0200
commit7d35cf4e5766f4968ea75ec222554064508d4e94 (patch)
treec7546971ec9f4e77db8a30df2841daf548f56e9e /text-utils/pg.c
parentpg: use unistd.h STDOUT_FILENO (diff)
downloadkernel-qcow2-util-linux-7d35cf4e5766f4968ea75ec222554064508d4e94.tar.gz
kernel-qcow2-util-linux-7d35cf4e5766f4968ea75ec222554064508d4e94.tar.xz
kernel-qcow2-util-linux-7d35cf4e5766f4968ea75ec222554064508d4e94.zip
pg: do not turn off warnigns artificially
Compiler warnings often mean something, fiddling with them is not good practise. Besides the 'proglem' removed macro tried to 'fix' does not even occur when compiling with modern gcc. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/pg.c')
-rw-r--r--text-utils/pg.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c
index ae0075874..54129d7c0 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -70,11 +70,6 @@
#define CMDBUF 255 /* size of command buffer */
#define TABSIZE 8 /* spaces consumed by tab character */
-/*
- * Avoid the message "`var' might be clobbered by `longjmp' or `vfork'"
- */
-#define CLOBBGRD(a) (void)(&(a));
-
#define cuc(c) ((c) & 0377)
enum { FORWARD = 1, BACKWARD = 2 }; /* search direction */
@@ -986,22 +981,6 @@ pgfile(FILE *f, const char *name)
*/
FILE *fbuf, *find, *save;
- /* silence compiler - it may warn about longjmp() */
- CLOBBGRD(line);
- CLOBBGRD(fline);
- CLOBBGRD(bline);
- CLOBBGRD(oldline);
- CLOBBGRD(eofline);
- CLOBBGRD(dline);
- CLOBBGRD(ttycols);
- CLOBBGRD(search);
- CLOBBGRD(searchcount);
- CLOBBGRD(seekeof);
- CLOBBGRD(eof);
- CLOBBGRD(fpos);
- CLOBBGRD(nobuf);
- CLOBBGRD(fbuf);
-
if (ontty == 0) {
/*
* Just copy stdin to stdout.