* Update addons structure. Make Y2038 addon works.
All addons are now located in same directory, where cppcheck-gui is
looking for them.
Y2038 addon has been updated to latest cppcheck version. Output is same
as 303622f01c01ca5acdac2504f2dab442b5343cab commit as it described in
README: 303622f01c/addons/y2038/README
.
* Clean up .travis.yml
* Update travis.yml paths.
* misra.py: Bring back -P argument for backward compatibility
* Fix paths
* Normalize dumpfile paths tpo cppcheck format
* Fixup 3 test.
* Add arguments regression test.
* Fixing travis build
19 lines
298 B
C
19 lines
298 B
C
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
|
|
/*
|
|
* Define _TIME_BITS unequal to 64 to trigger error
|
|
*/
|
|
|
|
#define _TIME_BITS 62
|
|
|
|
#include "y2038-inc.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
clockid_t my_clk_id = CLOCK_REALTIME;
|
|
struct timespec *my_tp;
|
|
|
|
return clock_gettime(my_clk_id, &my_tp);
|
|
}
|