]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Including trailing quote and cpp flags in the hash
authorAnders Björklund <anders@itension.se>
Thu, 21 Jul 2016 12:08:54 +0000 (14:08 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Aug 2016 19:52:20 +0000 (21:52 +0200)
When looking for which headers are system headers ("3")
in the commit 219783844c63d37c26f771c1471f3fe2943f9a88,
we skipped hashing the quote and flags... Restore that.
Shouldn't make any major difference, but changes the hash.

Closes #120.

ccache.c

index 20ab1aa1fcf9174959bcaa389c13009ac6c9f722..1af1b040ca6734b291db808a3fbb7301f0029184 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -814,7 +814,7 @@ process_preprocessed_file(struct mdfour *hash, const char *path)
                        }
                        inc_path = make_relative_path(inc_path);
                        remember_include_file(inc_path, hash, system);
-                       p = r;
+                       p = q;
                } else {
                        q++;
                }