[PATCH] Fix Wundef warning for DEBUG in mktime

Siddhesh Poyarekar siddhesh@redhat.com
Thu Jun 26 17:17:00 GMT 2014


Set DEBUG to 0 by default instead of undefined by default.  The
generated code is unchanged.

Alternatively we could just remove the debug code since we don't
normally do something like this for any of the other functions.  I
don't have a strong opinion about it either way.

Siddhesh

	* time/mktime.c: Define DEBUG to 0.

---
 time/mktime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/time/mktime.c b/time/mktime.c
index 963e4b9..a4a2d58 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -17,9 +17,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-/* Define this to have a standalone program to test this implementation of
+/* Define this to 1 to have a standalone program to test this implementation of
    mktime.  */
-/* #define DEBUG 1 */
+#define DEBUG 0
 
 #ifndef _LIBC
 # include <config.h>
-- 
1.9.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140626/07dd9624/attachment.sig>


More information about the Libc-alpha mailing list