diff options
author | Mariusz PluciĆski <mplucinski@mplucinski.com> | 2014-07-25 15:10:48 +0200 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2014-07-25 09:48:16 -0400 |
commit | 681db87f8ffb3d6177f0bfa54d877a88ea0a9ed8 (patch) | |
tree | 97acad32d4a414ea29f6e5036e50f7c12e6a5d58 | |
parent | f46a8c9ae460d1d002d5e9904ba0a6917c533118 (diff) |
Fix warning on assigning from `const char*` to `char*`
-rw-r--r-- | src/buf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -90,7 +90,8 @@ struct Buf *buf_prints (struct Buf *buf, const char *fmt, const char *s) */ struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno) { - char *dst, *src, *t; + char *dst, *t; + const char* src; t = flex_alloc (strlen ("#line \"\"\n") + /* constant parts */ 2 * strlen (filename) + /* filename with possibly all backslashes escaped */ |