pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

powwow: fix warnings



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Fri May 20 10:55:32 2022 +0200
Changeset:	2c16e423a855c1d2674c000c1f19a10bf146c5da

Modified Files:
	powwow/Makefile
	powwow/TODO

Log Message:
powwow: fix warnings

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2c16e423a855c1d2674c000c1f19a10bf146c5da

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 powwow/Makefile |  1 +
 powwow/TODO     | 18 ------------------
 2 files changed, 1 insertion(+), 18 deletions(-)

diffs:
diff --git a/powwow/Makefile b/powwow/Makefile
index 88b2c346af..c45def411f 100644
--- a/powwow/Makefile
+++ b/powwow/Makefile
@@ -10,6 +10,7 @@ COMMENT=	Client to play MUDs
 LICENSE=	gnu-gpl-v2
 USE_TOOLS+=	gmake
 
+CFLAGS+=		-D_XOPEN_SOURCE=700 -D_NETBSD_SOURCE
 GNU_CONFIGURE=		yes
 CONFIGURE_ARGS+=	--enable-bsd
 
diff --git a/powwow/TODO b/powwow/TODO
index a65f0cbb5e..1d70d3c484 100644
--- a/powwow/TODO
+++ b/powwow/TODO
@@ -1,19 +1 @@
 * Fails to resolve any domain names for me.
-
-* Also, this:
-gcc -DPACKAGE_NAME=\"powwow\" -DPACKAGE_TARNAME=\"powwow\" -DPACKAGE_VERSION=\"1.2.23\" -DPACKAGE_STRING=\"powwow\ 1.2.23\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"powwow\" -D
-VERSION=\"1.2.23\" -DUSE_SGTTY=1 -DBSD_LIKE=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
- -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DUSE_LOCALE=1 -DUSE_REGEXP=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -I.  -D_XOPEN_SOURCE=700 -DPOWWOW_
-DIR=\"/usr/pkg/share/powwow\" -DPLUGIN_DIR=\"/usr/pkg/lib/powwow\" -I/usr/include  -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include -MT ptr.o -MD -MP -MF .deps/ptr.Tpo -c -o ptr.o ptr.c          tty.c: In function 'tty_printf':
-tty.c:861:11: warning: implicit declaration of function 'vasprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
-  861 |     res = vasprintf(&bufp, format, va); 
-      |           ^~~~~~~~~                                                                    
-      |           vsprintf             
-ptr.c: In function 'ptrrchr':                                                                  
-ptr.c:442:9: warning: implicit declaration of function 'memrchr'; did you mean 'memrchrx'? [-Wimplicit-function-declaration]
-  442 |  return memrchr(ptrdata(p), ptrlen(p), c);                        
-      |         ^~~~~~~   
-      |         memrchrx                                                                       
-ptr.c:442:9: warning: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion]
-  442 |  return memrchr(ptrdata(p), ptrlen(p), c);
-      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                    


Home | Main Index | Thread Index | Old Index