The attached patch makes gl_VISIBILITY to work correctly when -Wmissing-prototypes is in effect: dummyfunc() used to have no prototypes. -- O.S.