summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2008-12-15 19:46:29 +0000
committerotto <otto@openbsd.org>2008-12-15 19:46:29 +0000
commitf9ea03e17e5289b240230a76564105fe343d39d1 (patch)
tree158fb852bd608386aa3de3179defa69a31ae2b70
parentin rt2860_rx_intr(), rely on RT2860_FS_DRX_IDX instead of the RX_DMA DDONE (diff)
downloadwireguard-openbsd-f9ea03e17e5289b240230a76564105fe343d39d1.tar.xz
wireguard-openbsd-f9ea03e17e5289b240230a76564105fe343d39d1.zip
turns out gcc is not smart enough to avoid the local array in const
char msg[] = "string literal" if you do not declare it static. shaves off a few bytes
-rw-r--r--usr.bin/bc/scan.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l
index fee5aa990b8..51a091bd182 100644
--- a/usr.bin/bc/scan.l
+++ b/usr.bin/bc/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.21 2006/03/18 20:44:43 otto Exp $ */
+/* $OpenBSD: scan.l,v 1.22 2008/12/15 19:46:29 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -18,7 +18,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: scan.l,v 1.21 2006/03/18 20:44:43 otto Exp $";
+static const char rcsid[] = "$OpenBSD: scan.l,v 1.22 2008/12/15 19:46:29 otto Exp $";
#endif /* not lint */
#include <err.h>
@@ -229,7 +229,7 @@ add_str(const char *str)
void
abort_line(int sig)
{
- const char str[] = "[\n]P\n";
+ static const char str[] = "[\n]P\n";
int save_errno;
save_errno = errno;