Ah, maybe I should have spent some more time looking through the code:

/* People who want to reduce the size of the may do this by entirely
* removing the logging system. This will cause all log messages to
* be discarded at compile time, allowing to save about 80 KiB for
* the compiled binary.
*/
#if 1
#define FLUID_LOG (void)sizeof
#else
#define FLUID_LOG fluid_log
#endif

fluidsynth_priv.h, L261.

Sorry for adding noise to the mailing list :)


James

---------------

email: jamesthistlew...@gmail.com
web: jamesthistlewood.co.uk
github: @jthistle

On Mon, 7 Sep 2020 at 23:14, James Thistlewood <jamesthistlew...@gmail.com>
wrote:

> Hi all,
>
> I'm building fluidsynth for use with a vimlike guitar-tab editor [1] I'm
> working on, and I've managed to shoehorn the .so into some Python bindings
> with success.
>
> I have one problem: fluid prints a warning message, 'fluidsynth: warning:
> SDL2 not initialized, SDL2 audio driver won't be usable' at every startup.
>
> Please, how can I build fluid in such a way that all log messages (well,
> maybe all but 'panic'-level ones) are hidden?
>
> Thank you,
>
> James
>
> [1] https://github.com/jthistle/tabby/
>
> ---------------
>
> email: jamesthistlew...@gmail.com
> web: jamesthistlewood.co.uk
> github: @jthistle
>
>
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to