[Bug 198113] Fix security/pam_ocra build with clang 3.6.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 1 00:05:59 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198113

            Bug ID: 198113
           Summary: Fix security/pam_ocra build with clang 3.6.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: dim at FreeBSD.org
                CC: sg2342 at googlemail.com
                CC: sg2342 at googlemail.com
             Flags: maintainer-feedback?(sg2342 at googlemail.com)

Created attachment 153633
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153633&action=edit
Constify two local variables to avoid -Wcast-qual warnings

During the exp-run in bug 197395, it was found that security/pam_ocra gives
errors with clang 3.6.0:

http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-27_12h37m16s/logs/errors/pam_ocra-1.1.log

These errors are -Werror warnings about dropping const qualifiers.  This is
easy to fix, as in the attached patch, which adds two const qualifiers to local
variables.  No functional change.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list