diff --git a/SConstruct b/SConstruct index a46d39e0b..a28b0552e 100644 --- a/SConstruct +++ b/SConstruct @@ -474,7 +474,7 @@ class DXXCommon(LazyObjectConstructor): # -Werror=undef to make this fatal. Both are needed, since # gcc 4.5 silently ignores -Werror=undef. On gcc 4.5, misuse # produces a warning. On gcc 4.7, misuse produces an error. - self.env.Append(CCFLAGS = ['-Wall', '-Wundef', '-Werror=undef', '-funsigned-char', '-Werror=implicit-int', '-Werror=implicit-function-declaration', '-Werror=format-security', '-pthread']) + self.env.Append(CCFLAGS = ['-Wall', '-Wundef', '-Werror=pointer-arith', '-Werror=undef', '-funsigned-char', '-Werror=implicit-int', '-Werror=implicit-function-declaration', '-Werror=format-security', '-pthread']) self.env.Append(CFLAGS = ['-std=gnu99', '-Wwrite-strings']) self.env.Append(CPPPATH = ['common/include', 'common/main', '.', self.user_settings.builddir]) if (self.user_settings.editor == 1): diff --git a/similar/editor/info.c b/similar/editor/info.c index 38f721231..e1494ccb3 100644 --- a/similar/editor/info.c +++ b/similar/editor/info.c @@ -313,6 +313,7 @@ void clear_pad_display(void) // ------------------------------------------------------------------------------------ int info_display_all(window *wind, d_event *event, void *userdata) { + (void)userdata; static int old_padnum = -1; int padnum,show_all = 1; // always redraw grs_canvas *save_canvas = grd_curcanv; @@ -320,7 +321,6 @@ int info_display_all(window *wind, d_event *event, void *userdata) switch (event->type) { case EVENT_WINDOW_DRAW: - userdata++; //kill warning gr_set_current_canvas(window_get_canvas(wind));