mirror of
https://fuchsia.googlesource.com/third_party/expat
synced 2024-08-01 15:16:32 +00:00
![Gulfem Savrun Yeniceri](/assets/img/avatar_default.png)
This patch suppresses -Wunused-but-set-variable warning in expat third party code that does not comply with. The code that causes the issues is as the following: third_party/expat/expat/lib/xmlparse.c:709:7: error: variable 'gettimeofday_res' set but not used Bug: 77973 Change-Id: I8783ca2bd92996bd8d923fa00e28c9e5e3f88610 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/expat/+/550882 Reviewed-by: Tamir Duberstein <tamird@google.com>
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# Copyright 2016 The Fuchsia Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
config("expat_config") {
|
|
include_dirs = [
|
|
"expat/lib",
|
|
"expat/vms",
|
|
]
|
|
defines = [ "HAVE_EXPAT_CONFIG_H" ]
|
|
}
|
|
|
|
config("expat_warnings") {
|
|
cflags = [
|
|
"-Wno-conversion",
|
|
"-Wno-implicit-fallthrough",
|
|
"-Wno-unused-but-set-variable",
|
|
]
|
|
}
|
|
|
|
source_set("expat") {
|
|
configs += [ ":expat_warnings" ]
|
|
public_configs = [ ":expat_config" ]
|
|
public = [ "expat/lib/expat.h" ]
|
|
sources = [
|
|
"expat/lib/amigaconfig.h",
|
|
"expat/lib/ascii.h",
|
|
"expat/lib/asciitab.h",
|
|
"expat/lib/expat_external.h",
|
|
"expat/lib/iasciitab.h",
|
|
"expat/lib/internal.h",
|
|
"expat/lib/latin1tab.h",
|
|
"expat/lib/macconfig.h",
|
|
"expat/lib/nametab.h",
|
|
"expat/lib/utf8tab.h",
|
|
"expat/lib/watcomconfig.h",
|
|
"expat/lib/winconfig.h",
|
|
"expat/lib/xmlparse.c",
|
|
"expat/lib/xmlrole.c",
|
|
"expat/lib/xmlrole.h",
|
|
"expat/lib/xmltok.c",
|
|
"expat/lib/xmltok.h",
|
|
"expat/lib/xmltok_impl.c",
|
|
"expat/lib/xmltok_impl.h",
|
|
"expat/lib/xmltok_ns.c",
|
|
]
|
|
}
|