diff options
author | David Robillard <d@drobilla.net> | 2012-05-24 02:54:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-24 02:54:10 +0000 |
commit | 27a1cf2cf73703267cac5bda2acca386afb374b3 (patch) | |
tree | 122ceba55fef1d183d1b32dca1fd60ffdc113112 /libs/ardour/export_format_manager.cc | |
parent | effe4de1889bfefba6550dff4244e06c2c7261bd (diff) |
Compile cleanly with clang.
To compile Ardour with LLVM/clang, do the usual thing but set the CXX and CC
environment variables, e.g.:
CC=/usr/bin/clang CXX=/usr/bin/clang++ ./waf configure build
git-svn-id: svn://localhost/ardour2/branches/3.0@12418 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_format_manager.cc')
-rw-r--r-- | libs/ardour/export_format_manager.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/export_format_manager.cc b/libs/ardour/export_format_manager.cc index f995bc1b0e..23a77925fe 100644 --- a/libs/ardour/export_format_manager.cc +++ b/libs/ardour/export_format_manager.cc @@ -239,7 +239,7 @@ ExportFormatManager::add_format (ExportFormatPtr ptr) boost::shared_ptr<HasSampleFormat> hsf; - if (hsf = boost::dynamic_pointer_cast<HasSampleFormat> (ptr)) { + if ((hsf = boost::dynamic_pointer_cast<HasSampleFormat> (ptr))) { hsf->SampleFormatSelectChanged.connect_same_thread (*this, boost::bind (&ExportFormatManager::change_sample_format_selection, this, _1, _2)); hsf->DitherTypeSelectChanged.connect_same_thread (*this, boost::bind (&ExportFormatManager::change_dither_type_selection, this, _1, _2)); } @@ -682,7 +682,7 @@ ExportFormatManager::selection_changed () } boost::shared_ptr<HasSampleFormat> hsf; - if (hsf = boost::dynamic_pointer_cast<HasSampleFormat> (get_selected_format())) { + if ((hsf = boost::dynamic_pointer_cast<HasSampleFormat> (get_selected_format()))) { SampleFormatList sf_list = hsf->get_sample_formats(); for (SampleFormatList::iterator it = sf_list.begin(); it != sf_list.end(); ++it) { @@ -747,7 +747,7 @@ ExportFormatManager::get_selected_sample_format () { boost::shared_ptr<HasSampleFormat> hsf; - if (hsf = boost::dynamic_pointer_cast<HasSampleFormat> (get_selected_format())) { + if ((hsf = boost::dynamic_pointer_cast<HasSampleFormat> (get_selected_format()))) { return hsf->get_selected_sample_format (); } else { return SampleFormatPtr (); |