diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-10 18:44:43 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-10 18:44:43 -0800 |
commit | a4a13480dd056f4109d74fc43c9453adf7fd35fd (patch) | |
tree | 3b33d934a240b997a7dd9530289827183d9a02cc /media/tests/players | |
parent | 538b00f6e583dfd38f6e329ef6715fb72f924160 (diff) | |
download | frameworks_base-a4a13480dd056f4109d74fc43c9453adf7fd35fd.zip frameworks_base-a4a13480dd056f4109d74fc43c9453adf7fd35fd.tar.gz frameworks_base-a4a13480dd056f4109d74fc43c9453adf7fd35fd.tar.bz2 |
Frameworks/base: Wall Werror in media/tests
Turn on -Wall -Werror in media/tests. Fix warnings.
Change-Id: I7177e795d4896f62dfa0b0a5990386e564763384
Diffstat (limited to 'media/tests/players')
-rw-r--r-- | media/tests/players/Android.mk | 1 | ||||
-rw-r--r-- | media/tests/players/invoke_mock_media_player.cpp | 34 |
2 files changed, 20 insertions, 15 deletions
diff --git a/media/tests/players/Android.mk b/media/tests/players/Android.mk index adf0d30..7ab6458 100644 --- a/media/tests/players/Android.mk +++ b/media/tests/players/Android.mk @@ -26,5 +26,6 @@ LOCAL_SHARED_LIBRARIES:= \ LOCAL_MODULE:= invoke_mock_media_player LOCAL_MODULE_TAGS := tests eng +LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code include $(BUILD_SHARED_LIBRARY) diff --git a/media/tests/players/invoke_mock_media_player.cpp b/media/tests/players/invoke_mock_media_player.cpp index d1fed7bb..0d0c7ad 100644 --- a/media/tests/players/invoke_mock_media_player.cpp +++ b/media/tests/players/invoke_mock_media_player.cpp @@ -58,7 +58,7 @@ class Player: public MediaPlayerBase virtual bool hardwareOutput() {return true;} virtual status_t setDataSource( - const sp<IMediaHTTPService> &httpService, + const sp<IMediaHTTPService>& /* httpService */, const char *url, const KeyedVector<String8, String8> *) { ALOGV("setDataSource %s", url); @@ -69,24 +69,28 @@ class Player: public MediaPlayerBase return OK; } - virtual status_t setDataSource(int fd, int64_t offset, int64_t length) {return OK;} + virtual status_t setDataSource(int /* fd */, int64_t /* offset */, int64_t /* length */) { + return OK; + } virtual status_t setVideoSurfaceTexture( - const sp<IGraphicBufferProducer>& bufferProducer) {return OK;} - virtual status_t prepare() {return OK;} - virtual status_t prepareAsync() {return OK;} - virtual status_t start() {return OK;} - virtual status_t stop() {return OK;} - virtual status_t pause() {return OK;} - virtual bool isPlaying() {return true;} - virtual status_t seekTo(int msec) {return OK;} - virtual status_t getCurrentPosition(int *msec) {return OK;} - virtual status_t getDuration(int *msec) {return OK;} + const sp<IGraphicBufferProducer>& /* bufferProducer */) { + return OK; + } + virtual status_t prepare() { return OK; } + virtual status_t prepareAsync() { return OK; } + virtual status_t start() { return OK; } + virtual status_t stop() { return OK; } + virtual status_t pause() { return OK; } + virtual bool isPlaying() { return true; } + virtual status_t seekTo(int /* msec */) { return OK; } + virtual status_t getCurrentPosition(int* /* msec */) { return OK; } + virtual status_t getDuration(int* /* msec */) { return OK; } virtual status_t reset() {return OK;} - virtual status_t setLooping(int loop) {return OK;} + virtual status_t setLooping(int /* loop */) { return OK; } virtual player_type playerType() {return TEST_PLAYER;} virtual status_t invoke(const Parcel& request, Parcel *reply); - virtual status_t setParameter(int key, const Parcel &request) {return OK;} - virtual status_t getParameter(int key, Parcel *reply) {return OK;} + virtual status_t setParameter(int /* key */, const Parcel& /* request */) { return OK; } + virtual status_t getParameter(int /* key */, Parcel* /* reply */) { return OK; } private: |