0001-ec-fix-a-clang-warning-by-use-a-unused-variable.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 35987639080ef4293bffbc1ce21de4d8a35b41db Mon Sep 17 00:00:00 2001
  2. From: Yunlian Jiang <yunlian@google.com>
  3. Date: Mon, 20 Apr 2015 09:38:56 -0700
  4. Subject: [PATCH 1/6] ec: fix a clang warning by use a unused variable.
  5. This uses the variable 'usage' in an error message to fix a clang
  6. warning.
  7. BUG=chromium:475960
  8. TEST=CC=x86_64-cros-linux-gnu-clang emerge-falco ec-devutils
  9. BRANCH=none
  10. Signed-off-by: yunlian@chromium.org
  11. Change-Id: Ic5703636040805661c7b81b83fc182e127ceab8c
  12. Reviewed-on: https://chromium-review.googlesource.com/266404
  13. Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
  14. Tested-by: Yunlian Jiang <yunlian@chromium.org>
  15. Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
  16. ---
  17. util/lbcc.c | 2 +-
  18. 1 file changed, 1 insertion(+), 1 deletion(-)
  19. diff --git a/util/lbcc.c b/util/lbcc.c
  20. index b34b21e..953f422 100644
  21. --- a/util/lbcc.c
  22. +++ b/util/lbcc.c
  23. @@ -630,7 +630,7 @@ int main(int argc, char *argv[])
  24. }
  25. if (errorcnt) {
  26. - fprintf(stderr, "\nUsage: %s [options] ...\n\n", progname);
  27. + fprintf(stderr, usage, progname);
  28. exit(1);
  29. }
  30. --
  31. 2.9.0