comparison libmenu/menu_txt.c @ 36582:b28f3ff37ae7

Use av_unused for unused arguments instead of various hacks.
author reimar
date Mon, 20 Jan 2014 22:08:48 +0000
parents 63bc09af21f4
children
comparison
equal deleted inserted replaced
36581:292a9e879fd0 36582:b28f3ff37ae7
22 22
23 #include <stdlib.h> 23 #include <stdlib.h>
24 #include <stdio.h> 24 #include <stdio.h>
25 #include <string.h> 25 #include <string.h>
26 26
27 #include "libavutil/attributes.h"
28
27 #include "libmpcodecs/img_format.h" 29 #include "libmpcodecs/img_format.h"
28 #include "libmpcodecs/mp_image.h" 30 #include "libmpcodecs/mp_image.h"
29 31
30 #include "m_struct.h" 32 #include "m_struct.h"
31 #include "m_option.h" 33 #include "m_option.h"
127 129
128 } 130 }
129 131
130 #define BUF_SIZE 1024 132 #define BUF_SIZE 1024
131 133
132 static int open_txt(menu_t* menu, char* args) { 134 static int open_txt(menu_t* menu, char* av_unused args) {
133 FILE* fd; 135 FILE* fd;
134 char buf[BUF_SIZE]; 136 char buf[BUF_SIZE];
135 char *l; 137 char *l;
136 int s; 138 int s;
137 int pos = 0, r = 0; 139 int pos = 0, r = 0;
138 args = NULL; // Warning kill
139 140
140 menu->draw = draw; 141 menu->draw = draw;
141 menu->read_cmd = read_cmd; 142 menu->read_cmd = read_cmd;
142 143
143 if(!mpriv->file) { 144 if(!mpriv->file) {