[Year 2038 Bug] Compiler warnings, FYI

Neil Bird neil at fnxweb.com
Mon Jul 13 09:26:48 SAST 2009


   [ I think the post I made last week went AWOL in our IT systems, so I'm 
reposting;  apologies if it comes through twice ]


   Compiling latest svn against gcc 4.4.0:

gcc44 -Wall -ansi -pedantic -Wno-long-long -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wconversion -g -I.   -c -o
time64.o time64.c
time64.c: In function ‘timegm64’:
time64.c:186: warning: conversion to ‘int’ from ‘Year’ may alter its value
time64.c:191: warning: conversion to ‘int’ from ‘Year’ may alter its value
time64.c: In function ‘seconds_between_years’:
time64.c:445: warning: conversion to ‘int’ from ‘Year’ may alter its value
time64.c:450: warning: conversion to ‘int’ from ‘Year’ may alter its value
time64.c: In function ‘gmtime64_r’:
time64.c:508: warning: conversion to ‘time_t’ from ‘Time64_T’ may alter its
value
time64.c:510: warning: implicit declaration of function ‘gmtime_r’
time64.c:598: warning: conversion to ‘int’ from ‘Year’ may alter its value
time64.c: In function ‘localtime64_r’:
time64.c:633: warning: conversion to ‘time_t’ from ‘Time64_T’ may alter its
value
time64.c:637: warning: implicit declaration of function ‘localtime_r’
time64.c:660: warning: conversion to ‘time_t’ from ‘Time64_T’ may alter its
value
time64.c:661: warning: comparison between pointer and integer
time64.c:668: warning: conversion to ‘int’ from ‘Year’ may alter its value


   There are a few more in the test building, but I've not captured those.

-- 
[neil at fnx ~]# rm -f .signature
[neil at fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil at fnx ~]# exit



More information about the General mailing list