diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2014-05-23 22:23:57 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-23 22:23:57 +0000 |
| commit | 21157abcd932e899032689dba120d4f7cb08aa23 (patch) | |
| tree | c62b364090bc7afa600a76ab8ae332c035a87324 /include/system | |
| parent | 3f69451b030917a0f29459e8e9f08b11ec8a980d (diff) | |
| parent | 8814bd1d24e3ce9476e64ba641d592521fcf80ed (diff) | |
| download | system_core-21157abcd932e899032689dba120d4f7cb08aa23.zip system_core-21157abcd932e899032689dba120d4f7cb08aa23.tar.gz system_core-21157abcd932e899032689dba120d4f7cb08aa23.tar.bz2 | |
am 8814bd1d: Merge "include: cleanup for -Wsystem-header"
* commit '8814bd1d24e3ce9476e64ba641d592521fcf80ed':
include: cleanup for -Wsystem-header
Diffstat (limited to 'include/system')
| -rw-r--r-- | include/system/audio.h | 8 | ||||
| -rw-r--r-- | include/system/window.h | 16 |
2 files changed, 18 insertions, 6 deletions
diff --git a/include/system/audio.h b/include/system/audio.h index f36befb..8838e71 100644 --- a/include/system/audio.h +++ b/include/system/audio.h @@ -434,6 +434,14 @@ typedef struct { static const audio_offload_info_t AUDIO_INFO_INITIALIZER = { version: AUDIO_OFFLOAD_INFO_VERSION_CURRENT, size: sizeof(audio_offload_info_t), + sample_rate: 0, + channel_mask: 0, + format: AUDIO_FORMAT_DEFAULT, + stream_type: AUDIO_STREAM_VOICE_CALL, + bit_rate: 0, + duration_us: 0, + has_video: false, + is_streaming: false }; static inline bool audio_is_output_device(audio_devices_t device) diff --git a/include/system/window.h b/include/system/window.h index 588f9c6..cfb4bee 100644 --- a/include/system/window.h +++ b/include/system/window.h @@ -26,6 +26,10 @@ #include <system/graphics.h> #include <unistd.h> +#ifndef __unused +#define __unused __attribute__((__unused__)) +#endif + __BEGIN_DECLS /*****************************************************************************/ @@ -89,10 +93,10 @@ typedef struct ANativeWindowBuffer // Implement the methods that sp<ANativeWindowBuffer> expects so that it // can be used to automatically refcount ANativeWindowBuffer's. - void incStrong(const void* id) const { + void incStrong(const void* /*id*/) const { common.incRef(const_cast<android_native_base_t*>(&common)); } - void decStrong(const void* id) const { + void decStrong(const void* /*id*/) const { common.decRef(const_cast<android_native_base_t*>(&common)); } #endif @@ -352,10 +356,10 @@ struct ANativeWindow /* Implement the methods that sp<ANativeWindow> expects so that it can be used to automatically refcount ANativeWindow's. */ - void incStrong(const void* id) const { + void incStrong(const void* /*id*/) const { common.incRef(const_cast<android_native_base_t*>(&common)); } - void decStrong(const void* id) const { + void decStrong(const void* /*id*/) const { common.decRef(const_cast<android_native_base_t*>(&common)); } #endif @@ -603,13 +607,13 @@ static inline int native_window_set_usage( /* deprecated. Always returns 0. Don't call. */ static inline int native_window_connect( - struct ANativeWindow* window, int api) { + struct ANativeWindow* window __unused, int api __unused) { return 0; } /* deprecated. Always returns 0. Don't call. */ static inline int native_window_disconnect( - struct ANativeWindow* window, int api) { + struct ANativeWindow* window __unused, int api __unused) { return 0; } |
