mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Conway (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-4451) Enable `-Wnull-dereference` when building Mesos
Date Sat, 23 Jan 2016 19:13:39 GMT

    [ https://issues.apache.org/jira/browse/MESOS-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113906#comment-15113906
] 

Neil Conway commented on MESOS-4451:
------------------------------------

In GCC (master), it seems the warning is enabled by {{-Wall}}, although only when optimizations
are enabled.

> Enable `-Wnull-dereference` when building Mesos
> -----------------------------------------------
>
>                 Key: MESOS-4451
>                 URL: https://issues.apache.org/jira/browse/MESOS-4451
>             Project: Mesos
>          Issue Type: Task
>          Components: build
>            Reporter: Anand Mazumdar
>            Priority: Minor
>              Labels: mesosphere
>
> Currently we don't have {{-Wnull-dereference}} enabled for Mesos. This can sometimes
lead to {{NULL}} dereference errors that go unnoticed like the one reported in {{MESOS-4449}}.
> We do have {{-Werror}} set to {{-Wall}} but this particular warning is not included in
{{-Wall}}.
> This flag has been recently introduced in {{GCC 5.3.0+}}. However, {{clang 3.5+}} have
had this for some time now. For now, one possible option would be to selectively enable this
for clang.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message