shithub: riscv

Download patch

ref: 3fa5aaa1bcb9f1ba80e708aea3672fbf4b7f098d
parent: 2d9147a33ce2bca64704d8da4f35b2f1468797d3
author: cinap_lenrek <[email protected]>
date: Sat Sep 1 10:53:38 EDT 2018

ip/ipconfig: add varargck pragma for warning() function

--- a/sys/src/cmd/ip/ipconfig/ipconfig.h
+++ b/sys/src/cmd/ip/ipconfig/ipconfig.h
@@ -135,6 +135,7 @@
 int	validip(uchar*);
 void	warning(char *fmt, ...);
 #define DEBUG if(debug)warning
+#pragma	varargck argpos	warning 1
 
 /*
  * DHCP