mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Remove use of the inline keyword used as suggestion to compiler
Historically, the inline keyword was a strong suggestion to the compiler that it should inline the function marked inline. As compilers became better at optimising, this functionality has receded, and using inline as a suggestion to inline a function is obsolete. The compiler will happily ignore it and inline something else entirely if it finds that's a better optimisation. Therefore, remove all the occurences of the inline keyword with static functions inside single compilation unit and leave the decision whether to inline a function or not entirely on the compiler NOTE: We keep the usage the inline keyword when the purpose is to change the linkage behaviour.
This commit is contained in:
@@ -65,7 +65,7 @@ struct isc_lex {
|
||||
LIST(struct inputsource) sources;
|
||||
};
|
||||
|
||||
static inline isc_result_t
|
||||
static isc_result_t
|
||||
grow_data(isc_lex_t *lex, size_t *remainingp, char **currp, char **prevp) {
|
||||
char *tmp;
|
||||
|
||||
@@ -182,7 +182,7 @@ isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials) {
|
||||
memmove(lex->specials, specials, 256);
|
||||
}
|
||||
|
||||
static inline isc_result_t
|
||||
static isc_result_t
|
||||
new_source(isc_lex_t *lex, bool is_file, bool need_close, void *input,
|
||||
const char *name) {
|
||||
inputsource *source;
|
||||
|
Reference in New Issue
Block a user