Power On Warning

I get inlining warnings after compiling on a 64bit Linux machine. Compiler:

gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1

Warnings:

warning: inlining failed : call is unlikely and code size would grow
warning: called from here
warning: inlining failed: call is unlikely and code size would grow
warning: called from here
warning: inlining failed: call is unlikely and code size would grow
warning: called from here
warning: inlining failed: call is unlikely and code size would grow

I searched for this and compiled it with the -Winline option. but have not yet found a solution. I am looking for a way to get rid of it. How to get rid of it?

slightly edited on 9th May 2010

I posted the above problem that I encountered a long time ago. I'm still looking for a solution for this. I tried to remove all inline from function. This leads to the non-use of many functions defined in the code, for example:

warning: function  defined but not used

I think that removing inline _ even reduced the performance (speed) of the code. Can anyone suggest some ideas for the above problem?

- , , .

+3
1

, - .

inline - , . , , inline.

+1

Source: https://habr.com/ru/post/1735753/


All Articles