OS X clang build issue fix
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 5 Jun 2016 21:59:56 +0000 (17:59 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 5 Jun 2016 22:00:48 +0000 (18:00 -0400)
libs/ardour/session.cc

index ecb71c74a1dcbdd4dcf49f4ef1408fd4708ffa13..e5b7f195a4c9cfb6296c72caec9d59c77ef95c3c 100644 (file)
@@ -3455,11 +3455,16 @@ Session::add_routes_inner (RouteList& new_routes, bool input_auto_connect, bool
                        }
                }
 
+#ifndef __APPLE__
+               /* clang complains: 'operator<<' should be declared prior to the call site or in an associated namespace of one of its
+                * arguments std::ostream& operator<<(std::ostream& o, ARDOUR::PresentationInfo const& rid)"
+                */
                DEBUG_TRACE (DEBUG::OrderKeys, string_compose ("added route %1, group order %2 type %3 (summary: %4)\n",
                                                               r->name(),
                                                               r->presentation_info().order(),
                                                               enum_2_string (r->presentation_info().flags()),
                                                               r->presentation_info()));
+#endif
 
 
                if (input_auto_connect || output_auto_connect) {