Commit 1bbdb52c authored by brettw@chromium.org's avatar brettw@chromium.org

Fix most GN clang errors.

Finally enabling Clang requires openssl and hunspell rolls. This should
fix everything else.

R=dalecurtis@chromium.org

Review URL: https://codereview.chromium.org/402683003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283894 0039d316-1c4b-4281-b951-d872f2087c98
parent 55e1899a
...@@ -420,6 +420,8 @@ if (is_linux && current_toolchain == host_toolchain) { ...@@ -420,6 +420,8 @@ if (is_linux && current_toolchain == host_toolchain) {
"src/common/string_conversion.h", "src/common/string_conversion.h",
] ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
direct_dependent_configs = [ ":breakpad_client_config" ] direct_dependent_configs = [ ":breakpad_client_config" ]
# Android NDK toolchain doesn't support -mimplicit-it=always # Android NDK toolchain doesn't support -mimplicit-it=always
...@@ -551,7 +553,8 @@ if (is_linux && current_toolchain == host_toolchain) { ...@@ -551,7 +553,8 @@ if (is_linux && current_toolchain == host_toolchain) {
] ]
# This file has an unused variable warning. # This file has an unused variable warning.
cflags = [ "-Wno-unused-variable" ] configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
deps = [ ":breakpad_client" ] deps = [ ":breakpad_client" ]
......
...@@ -42,8 +42,10 @@ static const int kMaximumOutputBufferSize = 8192; ...@@ -42,8 +42,10 @@ static const int kMaximumOutputBufferSize = 8192;
// Default input buffer size. // Default input buffer size.
static const int kDefaultInputBufferSize = 1024; static const int kDefaultInputBufferSize = 1024;
#if defined(DLOPEN_PULSEAUDIO)
static const base::FilePath::CharType kPulseLib[] = static const base::FilePath::CharType kPulseLib[] =
FILE_PATH_LITERAL("libpulse.so.0"); FILE_PATH_LITERAL("libpulse.so.0");
#endif
// static // static
AudioManager* AudioManagerPulse::Create(AudioLogFactory* audio_log_factory) { AudioManager* AudioManagerPulse::Create(AudioLogFactory* audio_log_factory) {
......
...@@ -53,6 +53,8 @@ source_set("opus") { ...@@ -53,6 +53,8 @@ source_set("opus") {
"src/silk", "src/silk",
] ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
direct_dependent_configs = [ ":opus_config" ] direct_dependent_configs = [ ":opus_config" ]
if (is_win) { if (is_win) {
...@@ -141,6 +143,9 @@ executable("opus_demo") { ...@@ -141,6 +143,9 @@ executable("opus_demo") {
"src/src/opus_demo.c", "src/src/opus_demo.c",
] ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
include_dirs = [ include_dirs = [
"src/celt", "src/celt",
"src/silk", "src/silk",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment