mom_walltime.c compiler warning: incompatible implicit declaration of built-in function 'exit'

Description

In the fix of a compiler warning was introduced.

gcc -DHAVE_CONFIG_H -I. -I../../../src/resmom -I../../src/include -DPBS_MOM -I../../../src/include -I../../../src/resmom/linux -I/usr/include/python2.7 -I/usr/include/python2.7 -g -O2 -MT pbs_mom-mom_walltime.o -MD -MP -MF .deps/pbs_mom-mom_walltime.Tpo -c -o pbs_mom-mom_walltime.o `test -f 'mom_walltime.c' || echo '../../../src/resmom/'`mom_walltime.c
In file included from ../../../src/resmom/mom_walltime.c:43:0:
../../../src/resmom/mom_walltime.c: In function 'update_walltime':
../../../src/include/pbs_assert.h:40:119: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
#define assert(as) {if (!(as)) {(void)fprintf(stderr, "Assertion failed: file \"%s\", line %d\n", _FILE_, _LINE_);exit(1);}}

^
../../../src/resmom/mom_walltime.c:75:5: note: in expansion of macro 'assert'
assert(resources_used != NULL);
^
../../../src/include/pbs_assert.h:40:119: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
#define assert(as) {if (!(as)) {(void)fprintf(stderr, "Assertion failed: file \"%s\", line %d\n", _FILE_, _LINE_);exit(1);}}

^
../../../src/resmom/mom_walltime.c:77:5: note: in expansion of macro 'assert'
assert(walltime_def != NULL);
^

Acceptance Criteria

None

Assignee

Minghui Liu

Reporter

Minghui Liu

Severity

2-Medium

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Fix versions

Affects versions

Priority

High
Configure