This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix Wundef warning for DEBUG in mktime


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

Attachment: pgpvoCEKLfCDb.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]