Bug 154109 - [PATCH] devel/jansson: Fix compiler warnings when using library header files
Summary: [PATCH] devel/jansson: Fix compiler warnings when using library header files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 12:10 UTC by darth
Modified: 2011-02-18 06:10 UTC (History)
1 user (show)

See Also:


Attachments
jansson-1.3_1.patch (9.06 KB, patch)
2011-01-18 12:10 UTC, darth
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description darth 2011-01-18 12:10:15 UTC
Fix compiler warnings when including the libraries header file(s), 'index' has
been used as variable name and thus generates a shadowed global declaration
warning with 'gcc' flag -Wshadow.

Patch does the following;
Renamed variable: index -> my_index

Added file(s):
- files/patch-fix_index_variable

Port maintainer (vanilla@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99

How-To-Repeat: 
make WARNS >= 4 (FreeBSD 8.1) and including jansson.h in source
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-18 12:12:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vanilla

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-02-18 06:07:06 UTC
vanilla     2011-02-18 06:06:59 UTC

  FreeBSD ports repository

  Modified files:
    devel/jansson        Makefile 
  Log:
  Fix compiler warning.
  
  PR:             ports/154109
  Submitted by:   darth at vader.dk
  Feature safe:   yes
  
  Revision  Changes    Path
  1.4       +1 -0      ports/devel/jansson/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Vanilla I. Shu freebsd_committer freebsd_triage 2011-02-18 06:07:26 UTC
State Changed
From-To: open->closed

Committed, thanks.