mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6c512fb5a3
commit
1f0961368f
200 changed files with 3582 additions and 3468 deletions
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <polyp/polyplib-simple.h>
|
||||
#include <polyp/polyplib-error.h>
|
||||
#include "gccmacro.h"
|
||||
|
||||
#define BUFSIZE 1024
|
||||
|
||||
|
|
@ -47,21 +48,21 @@ static ssize_t loop_write(int fd, const void*data, size_t size) {
|
|||
break;
|
||||
|
||||
ret += r;
|
||||
data = (uint8_t*) data + r;
|
||||
data = (const uint8_t*) data + r;
|
||||
size -= r;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int main(int argc, char*argv[]) {
|
||||
int main(PA_GCC_UNUSED int argc, char*argv[]) {
|
||||
/* The sample type to use */
|
||||
static const struct pa_sample_spec ss = {
|
||||
static const pa_sample_spec ss = {
|
||||
.format = PA_SAMPLE_S16LE,
|
||||
.rate = 44100,
|
||||
.channels = 2
|
||||
};
|
||||
struct pa_simple *s = NULL;
|
||||
pa_simple *s = NULL;
|
||||
int ret = 1;
|
||||
int error;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue