Skip to content

Commit

Permalink
Bug 1278938 - avoid warnings in omx-plugin headers when compiling wit…
Browse files Browse the repository at this point in the history
…h clang; r=snorp

We can avoid a struct/class mismatch in MediaExtractor.h.

TypeHelpers.h has extraneous |template<>| specializations that don't
actually specialize anything.
  • Loading branch information
froydnj committed Jun 9, 2016
1 parent 04fc7f7 commit e507d7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion media/omx-plugin/include/ics/stagefright/MediaExtractor.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
namespace android {

class DataSource;
class MediaSource;
struct MediaSource;
class MetaData;

class MediaExtractor : public RefBase {
Expand Down
4 changes: 0 additions & 4 deletions media/omx-plugin/include/ics/utils/TypeHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,15 @@ struct key_value_pair_t {
}
};

template<>
template <typename K, typename V>
struct trait_trivial_ctor< key_value_pair_t<K, V> >
{ enum { value = aggregate_traits<K,V>::has_trivial_ctor }; };
template<>
template <typename K, typename V>
struct trait_trivial_dtor< key_value_pair_t<K, V> >
{ enum { value = aggregate_traits<K,V>::has_trivial_dtor }; };
template<>
template <typename K, typename V>
struct trait_trivial_copy< key_value_pair_t<K, V> >
{ enum { value = aggregate_traits<K,V>::has_trivial_copy }; };
template<>
template <typename K, typename V>
struct trait_trivial_move< key_value_pair_t<K, V> >
{ enum { value = aggregate_traits<K,V>::has_trivial_move }; };
Expand Down

0 comments on commit e507d7d

Please sign in to comment.