[waffle] [PATCH 03/10] waffle: remove restrict keyword from public API

Chad Versace chad.versace at intel.com
Thu Jun 5 22:56:44 PDT 2014


On Sat, May 31, 2014 at 03:22:01AM +0100, Emil Velikov wrote:
> We should have never defined the restrict keyword in
> the waffle.h header. The word is used as a hint to the
> compiler to provide optimisations re: pointer aliasing.
> 
> Keep the symbol around, so that the compiler can still
> optimise the library.
> 
> v2: Move the symbol definition to its user and update the
> man pages.
> 
> Resolves #11: https://github.com/waffle-gl/waffle/issues/11
> 
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  include/waffle/waffle.h                 | 8 ++------
>  man/waffle_is_extension_in_string.3.xml | 4 ++--
>  src/waffle/api/waffle_gl_misc.c         | 4 ++++
>  3 files changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>



More information about the waffle mailing list