tests: Fix warnings about unused parameters.

This commit is contained in:
Simon Ruderich
2013-06-10 15:22:17 +02:00
parent 2f1aa1cdd3
commit afca2864dc
5 changed files with 23 additions and 5 deletions

View File

@@ -17,11 +17,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../src/compiler.h"
#define MAGIC "@RUN_"
#define MAGIC_LENGTH (strlen(MAGIC))
@@ -75,7 +79,7 @@ static void dump(char *argv[]) {
}
int main(int argc, char **argv) {
int main(int argc unused, char **argv) {
char argv0[strlen(argv[0]) + MAGIC_LENGTH + 3 + 1];
char *old_ldpreload = getenv("LD_PRELOAD");