mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2017-01-21, 16:48   #1
Explorer09
 
May 2014

3×11 Posts
Default mprime 28.10 compiler warning

Compiling mprime 28.10 source on Linux gives me this warning:

Code:
gcc -I.. -I../gwnum -O2 -malign-double -c menu.c
menu.c: In function ‘get_line’:
menu.c:28:38: warning: implicit declaration of function ‘sigterm_handler’ [-Wimplicit-function-declaration]
  if (fgets (buf, 80, stdin) == NULL) sigterm_handler (SIGTERM); // Treat EOF the same as a termination signal
                                      ^~~~~~~~~~~~~~~
It seems that sigterm_handler() in prime.c didn't get declared in prime.h, hence the warning. I hope mprime developer is already aware of this.
Explorer09 is offline   Reply With Quote
Old 2017-01-23, 02:50   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

22×17×109 Posts
Default

Fixed in 29.1. Thanks.
Prime95 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
warning: zero character Alfred Msieve 2 2018-03-18 18:52
Is there an FAQ for Error and Warning messages? Unregistered Information & Answers 31 2013-01-31 06:13
Help! Compiler bug R.D. Silverman Cunningham Tables 30 2010-10-02 22:12
warning: zero character fivemack Msieve 1 2009-03-21 14:26
Firefox 2.0 warning Prime95 Lounge 7 2006-10-31 05:40

All times are UTC. The time now is 15:56.

Tue Apr 20 15:56:41 UTC 2021 up 12 days, 10:37, 1 user, load averages: 1.94, 2.20, 2.24

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.