diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-08-16 12:30:34 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-08-16 13:20:07 +0200 |
commit | cf7a5a6923d742d734dd7596f45f73aab05146f0 (patch) | |
tree | 66c11959a7c8cb0786feaf75f2eca46ddbabb39e /apps | |
parent | 28541e46d075b63fc88e8bb57e25f5f16e61cc26 (diff) | |
download | mupdf-cf7a5a6923d742d734dd7596f45f73aab05146f0.tar.xz |
Silence some warnings.
Avoid the C++ code complaining about casting string literals
to non-const char *'s.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/jstest_main.c | 2 | ||||
-rw-r--r-- | apps/mudraw.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/jstest_main.c b/apps/jstest_main.c index 686fc088..bb2f4afd 100644 --- a/apps/jstest_main.c +++ b/apps/jstest_main.c @@ -238,7 +238,7 @@ static void unescape_string(char *d, const char *s) { char c; - while (c = *s++) + while ((c = *s++) != 0) { if (c == '\\') { diff --git a/apps/mudraw.c b/apps/mudraw.c index a0aab51a..28089629 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -282,7 +282,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) fprintf(mujstest_file, "TEXT %d\n", mujstest_count); break; case FZ_WIDGET_CONTENT_SPECIAL: - fprintf(mujstest_file, "TEXT %d\n", 46702919800 + mujstest_count); + fprintf(mujstest_file, "TEXT %lld\n", 46702919800 + mujstest_count); break; case FZ_WIDGET_CONTENT_DATE: fprintf(mujstest_file, "TEXT Jun %d 1979\n", 1 + ((13 + mujstest_count) % 30)); |