aboutsummaryrefslogtreecommitdiff
path: root/util/make_errors.go
diff options
context:
space:
mode:
authorHÃ¥vard Molland <haavardm@opera.com>2014-08-20 14:58:27 +0200
committerAdam Langley <agl@google.com>2014-08-20 19:03:29 +0000
commitfd00303a54554d20d2ce38bb40ae13b8aace6c41 (patch)
tree5f1a410fce20ab5e6266fdc58a23276b76a67edf /util/make_errors.go
parenta7d1363fcb1f0d825ec2393c06be3d58b0c57efd (diff)
downloadboringssl-fd00303a54554d20d2ce38bb40ae13b8aace6c41.zip
boringssl-fd00303a54554d20d2ce38bb40ae13b8aace6c41.tar.gz
boringssl-fd00303a54554d20d2ce38bb40ae13b8aace6c41.tar.bz2
Don't scan libfoo_error.c for error codes.
This will have the effect that all dead error codes are removed from given lib when make_errors.go runs with --reset flag. Change-Id: I6303721c5d7cd18af7d47c95fdf3702a7628ad5a Reviewed-on: https://boringssl-review.googlesource.com/1570 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'util/make_errors.go')
-rw-r--r--util/make_errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/make_errors.go b/util/make_errors.go
index f770e3d..5fd75e2 100644
--- a/util/make_errors.go
+++ b/util/make_errors.go
@@ -90,7 +90,7 @@ func makeErrors(reset bool) error {
}
for _, name := range filenames {
- if !strings.HasSuffix(name, ".c") {
+ if !strings.HasSuffix(name, ".c") || name == sourcePath {
continue
}