Skip to content

Commit

Permalink
configure.ac: Avoid implicit declaration of the exit function (#104)
Browse files Browse the repository at this point in the history
* configure.ac: Avoid implicit declaration of the exit function

Future C compilers are likely to reject implicit function declarations
by default.  This language feature was officially removed in 1999.
  • Loading branch information
fweimer-rh authored Dec 19, 2022
1 parent d8c34b4 commit b1e132d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Future C compilers are likely to reject implicit function declarations by default. This language feature was officially removed in 1999. @ffwmeier-rh

Changes 2.17.11, 2022-??-??
---------------------------
From: youpong
Expand Down
2 changes: 1 addition & 1 deletion src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AC_CACHE_VAL(mr_cv_long_long_format_specifier,[
char buffer[1000];
sprintf (buffer, "%${format}u", a);
sscanf (buffer, "%${format}u", &b);
exit (b!=a);
return b!=a;
}
]])],[mr_cv_long_long_format_specifier="%${format}d"
mr_cv_long_long_format="${format}d"
Expand Down

0 comments on commit b1e132d

Please sign in to comment.