Bug 155154 - [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-03-01 14:00 UTC by darth
Modified: 2011-04-13 07:50 UTC (History)
1 user (show)

See Also:


Attachments
jansson-2.0_1.patch (6.93 KB, patch)
2011-03-01 14:00 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-03-01 14:00:20 UTC
Essentially the same fix as PR ports/154109 which corrected the same issue
just with devel/jansson version: 1.3

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-03-01 14:00:40 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-04-13 07:42:44 UTC
vanilla     2011-04-13 06:42:27 UTC

  FreeBSD ports repository

  Modified files:
    devel/jansson        Makefile distinfo 
  Added files:
    devel/jansson/files  patch-src_hashtable.c patch-src_jansson.h 
                         patch-src_value.c 
  Log:
  1: upgrade to 2.0.1
  2: fix compier warnings
  
  PR:             ports/155154 [2]
  Submitted by:   darth at vader.dk [2]
  
  Revision  Changes    Path
  1.6       +1 -1      ports/devel/jansson/Makefile
  1.5       +2 -2      ports/devel/jansson/distinfo
  1.1       +56 -0     ports/devel/jansson/files/patch-src_hashtable.c (new)
  1.1       +39 -0     ports/devel/jansson/files/patch-src_jansson.h (new)
  1.1       +107 -0    ports/devel/jansson/files/patch-src_value.c (new)
_______________________________________________
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-04-13 07:43:15 UTC
State Changed
From-To: open->closed

Committed, thanks.