On 2022-04-05 07:27, Keith Christian wrote:
I successfully compiled diction and style from this tar file, but with errors: https://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz Diction and style both work, but I am looking for suggestions for how to clean up the compile errors in lines 48 - 60 below:
...
48 getopt.c:147:1: warning: function declaration isnt a prototype [-Wstrict-prototypes] 49 147 | extern char *getenv (); 50 | ^~~~~~ 51 getopt.c: In function _getopt_internal_r: 52 getopt.c:444:23: warning: cast discards const qualifier from pointer target type [-Wcast-qual] 53 444 | exchange ((char **) argv, d); 54 | ^ 55 getopt.c:467:23: warning: cast discards const qualifier from pointer target type [-Wcast-qual] 56 467 | exchange ((char **) argv, d); 57 | ^ 58 getopt.c:774:27: warning: cast discards const qualifier from pointer target type [-Wcast-qual] 59 774 | d->__nextchar = (char *) ""; 60 | ^
#include <stdlib.h> remove casts (should not normally be required or used in C) -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.] -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple