Enable -Wpointer-arith
This commit is contained in:
parent
d447d02a1d
commit
173a3febc9
|
@ -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):
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue