]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - tests/example_exec.c
tests: Fix warnings about unused parameters.
[coloredstderr/coloredstderr.git] / tests / example_exec.c
index 3a185673e7f06931e583847f89d1d95041054005..bd12b5a71f7b5f5ce42436144d966b5a192e3e6c 100644 (file)
  * 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");