Difference between revisions of "Education ClassRoom/Previous Logs/be warning free"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: [11:10] <chacha_chaudhry_> ericb2: let us start [11:10] <ericb2> chacha_chaudhry ok [11:11] <ericb2> The point is to present the most important warnings we have in binfilter [11:12]...)
 
Line 1: Line 1:
[11:10] <chacha_chaudhry_> ericb2: let us start
+
{|
 +
|- id="t11:10"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: let us start
 +
|| [[#t11:10|11:10]]
 +
|- id="t11:10"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry ok
 +
|| [[#t11:10|11:10]]
 +
|- id="t11:11"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | The point is to present the most important warnings we have in binfilter
 +
|| [[#t11:11|11:11]]
 +
|- id="t11:12"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | identify, analyze them helps to fix them, improve the code, and fix bugs too
 +
|| [[#t11:12|11:12]]
 +
|- id="t11:13"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | The origin of fixing warnings in OpenOffice.org projet is due to Stephan Bergmann
 +
|| [[#t11:13|11:13]]
 +
|- id="t11:13"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | his initial mail : http://www.openoffice.org/servlets/ReadMsg?listName=dev&amp;msgNo=14653
 +
|| [[#t11:13|11:13]]
 +
|- id="t11:13"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | for the one who compiled OpenOffice.org 3 or more years ago, the amount of warnings was impressive
 +
|| [[#t11:13|11:13]]
 +
|- id="t11:13"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and teh log size too :-)
 +
|| [[#t11:13|11:13]]
 +
|- id="t11:15"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | currently, OpenOffice.org build environment can be configured using --enable-werror
 +
|| [[#t11:15|11:15]]
 +
|- id="t11:15"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | Will turn warnings to errors. (Has no effect in modules where the treating of warnings as errors is disabled
 +
|| [[#t11:15|11:15]]
 +
|- id="t11:15"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | )
 +
|| [[#t11:15|11:15]]
 +
|- id="t11:16"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | binfilter is one of the modules where werror are not treated
 +
|| [[#t11:16|11:16]]
 +
|- id="t11:16"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and the game (sort of) is to fix most of them
 +
|| [[#t11:16|11:16]]
 +
|- id="t11:17"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | Rakesh Pandit, alias chacha_chaudhry here, helps me in this task
 +
|| [[#t11:17|11:17]]
 +
|- id="t11:18"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | the idea is not to spend time, but discover OpenOffice.org building process, understand how create patches, understand the code
 +
|| [[#t11:18|11:18]]
 +
|-
 +
| colspan="3" | and fix little design errors
 +
|- id="t11:18"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | this s a difficult task, because of the amount of warnings: the log is more than 3MB
 +
|| [[#t11:18|11:18]]
 +
|- id="t11:19"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry if you want to add something, please go ahead ;)
 +
|| [[#t11:19|11:19]]
 +
|- id="t11:19"
 +
| colspan="2" | * chacha_chaudhry has quit (Read error: 110 (Connection timed out))
 +
|| [[#t11:19|11:19]]
 +
|- id="t11:19"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | yes sure ...
 +
|| [[#t11:19|11:19]]
 +
|- id="t11:20"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | There is a wiki page ---&gt; which has some good points for solving these warnings and keeping code warning free.
 +
|| [[#t11:20|11:20]]
 +
|-
 +
| colspan="3" | http://wiki.services.openoffice.org/wiki/Writing_warning-free_code
 +
|- id="t11:21"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: exact
 +
|| [[#t11:21|11:21]]
 +
|- id="t11:21"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2 has also made one more avoid warnings at http://wiki.services.openoffice.org/wiki/User:Ericb#Avoid_Warnings
 +
|| [[#t11:21|11:21]]
 +
|- id="t11:21"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: in fact, I think it does worth to complete the first wiki page with what I wrote
 +
|| [[#t11:21|11:21]]
 +
|- id="t11:21"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | we may move this to more appropriate page, ericb2 yes
 +
|| [[#t11:21|11:21]]
 +
|- id="t11:22"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: looks like we identified most of the known warnings in binfilter
 +
|| [[#t11:22|11:22]]
 +
|- id="t11:22"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: in a previous cws ( wae4extensions ) , we had other
 +
|| [[#t11:22|11:22]]
 +
|- id="t11:22"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: yes I think so
 +
|| [[#t11:22|11:22]]
 +
|- id="t11:22"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: but globally, it was the same list
 +
|| [[#t11:22|11:22]]
 +
|- id="t11:22"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | what kind of warnings can be meet ?
 +
|| [[#t11:22|11:22]]
 +
|- id="t11:23"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: Nice -- so essentially we have a complete list
 +
|| [[#t11:23|11:23]]
 +
|- id="t11:23"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: very exhaustive list, yes
 +
|| [[#t11:23|11:23]]
 +
|- id="t11:23"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | let me list them down you may like to add:
 +
|| [[#t11:23|11:23]]
 +
|- id="t11:24"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | a) enumeration --  not handled in switch
 +
|| [[#t11:24|11:24]]
 +
|- id="t11:24"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | b)  warning: "/*" within comment
 +
|| [[#t11:24|11:24]]
 +
|- id="t11:25"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | c) in constructor warnings -- mixed up order in definition and declaration
 +
|| [[#t11:25|11:25]]
 +
|- id="t11:25"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | d) variables not used
 +
|| [[#t11:25|11:25]]
 +
|- id="t11:26"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | etc ...
 +
|| [[#t11:26|11:26]]
 +
|- id="t11:26"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: you may like to add
 +
|| [[#t11:26|11:26]]
 +
|- id="t11:26"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: ok. I'll ask Stephan Bergmann, and we'll see
 +
|| [[#t11:26|11:26]]
 +
|- id="t11:26"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: Okay
 +
|| [[#t11:26|11:26]]
 +
|- id="t11:27"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | About the effort, chacha_chaudhry_ did a lot on the page :
 +
|| [[#t11:27|11:27]]
 +
|- id="t11:27"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | http://wiki.services.openoffice.org/wiki/Education_Project/Effort/Fixing_warning
 +
|| [[#t11:27|11:27]]
 +
|- id="t11:28"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: I don't know for you, but I think fix such warnings, helped me a lot to read and understand a bunch of code in
 +
|| [[#t11:28|11:28]]
 +
|-
 +
| colspan="3" | OpenOffice.org
 +
|- id="t11:29"
 +
| colspan="2" | * ericb2 forgot to add, the binfilter is a deprecated module, in end of life state
 +
|| [[#t11:29|11:29]]
 +
|- id="t11:29"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: me too not only understand code, but helped me to understand the whole development model followed
 +
|| [[#t11:29|11:29]]
 +
|- id="t11:29"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: btw, I discussed with ause about the headers issue I found
 +
|| [[#t11:29|11:29]]
 +
|- id="t11:30"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: and he was very kind to explain me better
 +
|| [[#t11:30|11:30]]
 +
|- id="t11:30"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: okay -- nice
 +
|| [[#t11:30|11:30]]
 +
|- id="t11:30"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | ericb2: may you describe briefly
 +
|| [[#t11:30|11:30]]
 +
|- id="t11:30"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry_: sure
 +
|| [[#t11:30|11:30]]
 +
|- id="t11:31"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | for the one who read a bit the code, the headers in binfilter are a dupe of the one you find in some other modules
 +
|| [[#t11:31|11:31]]
 +
|- id="t11:31"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | e.g. in binfilter, you can find :
 +
|| [[#t11:31|11:31]]
 +
|- id="t11:31"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | bw_starmath , bf_sc, bf_sd , bf_sch .. and so on
 +
|| [[#t11:31|11:31]]
 +
|- id="t11:32"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and in inc, the corresponding public headers :
 +
|| [[#t11:32|11:32]]
 +
|- id="t11:32"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | binfilter/inc/bw_starmath , binfilter/inc/bf_sc, binfilter/inc/bf_sd , binfilter/inc/bf_sch .. and so on
 +
|| [[#t11:32|11:32]]
 +
|- id="t11:33"
 +
! style="background-color: #407a40" | chacha_chaudhry_
 +
| style="color: #407a40" | okay
 +
|| [[#t11:33|11:33]]
 +
|- id="t11:33"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and if you look carefully e.g. in starmath, you'll find the same headers in starmath/sour
 +
|| [[#t11:33|11:33]]
 +
|- id="t11:33"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and if you look carefully e.g. in starmath, you'll find the same headers in starmath/source
 +
|| [[#t11:33|11:33]]
 +
|- id="t11:33"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | means : complete duplication of headers
 +
|| [[#t11:33|11:33]]
 +
|- id="t11:33"
 +
| colspan="2" | * chacha_chaudhry_ is now known as chacha_chaudhry
 +
|| [[#t11:33|11:33]]
 +
|- id="t11:33"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | ericb2: yes
 +
|| [[#t11:33|11:33]]
 +
|- id="t11:34"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | so I asked ause ( Hans-Joachim Lankenau ) to explain me whether deliver all headers before the build and not duplicate them
 +
|| [[#t11:34|11:34]]
 +
|-
 +
| colspan="3" | could help
 +
|- id="t11:34"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | the answer is no
 +
|| [[#t11:34|11:34]]
 +
|- id="t11:35"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | reason ?
 +
|| [[#t11:35|11:35]]
 +
|- id="t11:35"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | first, duplication was indended to keep the binfilter version of the header unchange while the other one is free to move on
 +
|| [[#t11:35|11:35]]
 +
|- id="t11:35"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | second, deliver first has towo major problems:
 +
|| [[#t11:35|11:35]]
 +
|- id="t11:35"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | for one, some (quite some) of the header are generated
 +
|| [[#t11:35|11:35]]
 +
|- id="t11:35"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and changing the build to a clean multi-pass environment it quite a bit of work (imho, less stable also)
 +
|| [[#t11:35|11:35]]
 +
|- id="t11:36"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | okay
 +
|| [[#t11:36|11:36]]
 +
|- id="t11:36"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | ause had some contact with the mozilla build which had chosen this in the past
 +
|| [[#t11:36|11:36]]
 +
|- id="t11:36"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | and it's at least part of the cause for a couple of strange effects
 +
|| [[#t11:36|11:36]]
 +
|- id="t11:37"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" |  .. and some are even used wrong in many places ;)
 +
|| [[#t11:37|11:37]]
 +
|- id="t11:37"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | okay
 +
|| [[#t11:37|11:37]]
 +
|- id="t11:37"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | here is ause explanation, showing us how things are complicated in the reality
 +
|| [[#t11:37|11:37]]
 +
|- id="t11:37"
 +
| colspan="2" | * ericb2 knows some modules have a great history ;)
 +
|| [[#t11:37|11:37]]
 +
|- id="t11:38"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | in OpenOffice.org source code
 +
|| [[#t11:38|11:38]]
 +
|- id="t11:38"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | I think we can close with the next tasks to come ?
 +
|| [[#t11:38|11:38]]
 +
|- id="t11:38"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | yes
 +
|| [[#t11:38|11:38]]
 +
|- id="t11:39"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | wae4binfilter01 is imho ready for QA
 +
|| [[#t11:39|11:39]]
 +
|- id="t11:39"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | but we have no QA resp
 +
|| [[#t11:39|11:39]]
 +
|- id="t11:39"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | Action Item : find one QA rep
 +
|| [[#t11:39|11:39]]
 +
|- id="t11:39"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | wae4binfilter02 is work in progress, and I'll commit the patches you'll send to me
 +
|| [[#t11:39|11:39]]
 +
|- id="t11:39"
 +
| colspan="2" | chacha_chaudhry ChanServ ChaoticGood
 +
|| [[#t11:39|11:39]]
 +
|- id="t11:39"
 +
| colspan="2" | chacha_chaudhry ChanServ ChaoticGood
 +
|| [[#t11:39|11:39]]
 +
|- id="t11:40"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | okay by today late all bf_sw
 +
|| [[#t11:40|11:40]]
 +
|- id="t11:40"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry: ok, great.  from my part, I'll be on holidays next week, so I'll try to continue, but no doubt the second cws will
 +
|| [[#t11:40|11:40]]
 +
|-
 +
| colspan="3" | wait until I'm back
 +
|- id="t11:41"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry: and I'll prepare something about UNO
 +
|| [[#t11:41|11:41]]
 +
|- id="t11:41"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | I will take up bf_xmloff next -- I will finish all by tomorrow if you leave it to me.
 +
|| [[#t11:41|11:41]]
 +
|- id="t11:41"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry: no problem. I have a lot to do from my side, and not only for wae4binfilter0x
 +
|| [[#t11:41|11:41]]
 +
|- id="t11:41"
 +
| colspan="2" | chacha_chaudhry ChanServ ChaoticGood
 +
|| [[#t11:41|11:41]]
 +
|- id="t11:41"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry: so you are welcome
 +
|| [[#t11:41|11:41]]
 +
|- id="t11:41"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | ericb2: I know
 +
|| [[#t11:41|11:41]]
 +
|- id="t11:42"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | ericb2: :) yes I will mail you half today and rest tomorrow late
 +
|| [[#t11:42|11:42]]
 +
|- id="t11:42"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | ericb2: all files
 +
|| [[#t11:42|11:42]]
 +
|- id="t11:42"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | chacha_chaudhry: no problem
 +
|| [[#t11:42|11:42]]
 +
|- id="t11:42"
 +
| colspan="2" | * ericb2 now invites interested people to read the wiki page mentioned above, and ask questions on the channel if ever they have
 +
|| [[#t11:42|11:42]]
 +
|- id="t11:43"
 +
! style="background-color: #42427e" | ericb2
 +
| style="color: #42427e" | End of meeting ?
 +
|| [[#t11:43|11:43]]
 +
|- id="t11:44"
 +
! style="background-color: #818144" | chacha_chaudhry
 +
| style="color: #818144" | ericb2: yes
 +
|| [[#t11:44|11:44]]
 +
|}
  
[11:10]  <ericb2> chacha_chaudhry ok
+
Generated by irclog2html.py 2.6 by [mailto:marius@pov.lt Marius Gedminas] - find it at [http://mg.pov.lt/irclog2html mg.pov.lt]!
 
+
[11:11]  <ericb2> The point is to present the most important warnings we have in binfilter
+
 
+
[11:12]  <ericb2> identify, analyze them helps to fix them, improve the code, and fix bugs too
+
 
+
[11:13]  <ericb2> The origin of fixing warnings in OpenOffice.org projet is due to Stephan Bergmann
+
 
+
[11:13]  <ericb2> his initial mail : http://www.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=14653
+
 
+
[11:13]  <ericb2> for the one who compiled OpenOffice.org 3 or more years ago, the amount of warnings was impressive
+
 
+
[11:13] <ericb2> and teh log size too :-)
+
 
+
[11:15]  <ericb2> currently, OpenOffice.org build environment can be configured using --enable-werror
+
 
+
[11:15]  <ericb2> Will turn warnings to errors. (Has no effect in modules where the treating of warnings as errors is disabled
+
 
+
[11:15]  <ericb2> )
+
 
+
[11:16]  <ericb2> binfilter is one of the modules where werror are not treated
+
 
+
[11:16]  <ericb2> and the game (sort of) is to fix most of them
+
 
+
[11:17]  <ericb2> Rakesh Pandit, alias chacha_chaudhry here, helps me in this task
+
 
+
[11:18]  <ericb2> the idea is not to spend time, but discover OpenOffice.org building process, understand how create patches, understand the code
+
and fix little design errors
+
 
+
[11:18]  <ericb2> this s a difficult task, because of the amount of warnings: the log is more than 3MB
+
 
+
[11:19]  <ericb2> chacha_chaudhry if you want to add something, please go ahead ;)
+
 
+
[11:19]  * chacha_chaudhry has quit (Read error: 110 (Connection timed out))
+
 
+
[11:19]  <chacha_chaudhry_> yes sure ...
+
 
+
[11:20]  <chacha_chaudhry_> There is a wiki page ---> which has some good points for solving these warnings and keeping code warning free.
+
http://wiki.services.openoffice.org/wiki/Writing_warning-free_code
+
 
+
[11:21]  <ericb2> chacha_chaudhry_: exact
+
 
+
[11:21]  <chacha_chaudhry_> ericb2 has also made one more avoid warnings at http://wiki.services.openoffice.org/wiki/User:Ericb#Avoid_Warnings
+
 
+
[11:21]  <ericb2> chacha_chaudhry_: in fact, I think it does worth to complete the first wiki page with what I wrote
+
 
+
[11:21]  <chacha_chaudhry_> we may move this to more appropriate page, ericb2 yes
+
 
+
[11:22]  <ericb2> chacha_chaudhry_: looks like we identified most of the known warnings in binfilter
+
 
+
[11:22]  <ericb2> chacha_chaudhry_: in a previous cws ( wae4extensions ) , we had other
+
 
+
[11:22]  <chacha_chaudhry_> ericb2: yes I think so
+
 
+
[11:22]  <ericb2> chacha_chaudhry_: but globally, it was the same list
+
 
+
[11:22]  <ericb2> what kind of warnings can be meet ?
+
 
+
[11:23]  <chacha_chaudhry_> ericb2: Nice -- so essentially we have a complete list
+
 
+
[11:23]  <ericb2> chacha_chaudhry_: very exhaustive list, yes
+
 
+
[11:23]  <chacha_chaudhry_> let me list them down you may like to add:
+
 
+
[11:24]  <chacha_chaudhry_> a) enumeration --  not handled in switch
+
 
+
[11:24]  <chacha_chaudhry_> b)  warning: "/*" within comment
+
 
+
[11:25]  <chacha_chaudhry_> c) in constructor warnings -- mixed up order in definition and declaration
+
 
+
[11:25]  <chacha_chaudhry_> d) variables not used
+
 
+
[11:26]  <chacha_chaudhry_> etc ...
+
[11:26]  <chacha_chaudhry_> ericb2: you may like to add
+
 
+
 
+
[11:26]  <ericb2> chacha_chaudhry_: ok. I'll ask Stephan Bergmann, and we'll see
+
 
+
[11:26]  <chacha_chaudhry_> ericb2: Okay
+
 
+
[11:27]  <ericb2> About the effort, chacha_chaudhry_ did a lot on the page :
+
 
+
[11:27]  <ericb2> http://wiki.services.openoffice.org/wiki/Education_Project/Effort/Fixing_warning
+
 
+
[11:28]  <ericb2> chacha_chaudhry_: I don't know for you, but I think fix such warnings, helped me a lot to read and understand a bunch of code in
+
OpenOffice.org
+
 
+
[11:29]  * ericb2 forgot to add, the binfilter is a deprecated module, in end of life state
+
 
+
 
+
[11:29]  <chacha_chaudhry_> ericb2: me too not only understand code, but helped me to understand the whole development model followed
+
 
+
[11:29]  <ericb2> chacha_chaudhry_: btw, I discussed with ause about the headers issue I found
+
 
+
[11:30]  <ericb2> chacha_chaudhry_: and he was very kind to explain me better
+
 
+
[11:30]  <chacha_chaudhry_> ericb2: okay -- nice
+
 
+
[11:30]  <chacha_chaudhry_> ericb2: may you describe briefly
+
 
+
[11:30]  <ericb2> chacha_chaudhry_: sure
+
 
+
[11:31]  <ericb2> for the one who read a bit the code, the headers in binfilter are a dupe of the one you find in some other modules
+
 
+
[11:31]  <ericb2> e.g. in binfilter, you can find :
+
 
+
[11:31] <ericb2> bw_starmath , bf_sc, bf_sd , bf_sch .. and so on
+
 
+
[11:32]  <ericb2> and in inc, the corresponding public headers :
+
 
+
[11:32]  <ericb2> binfilter/inc/bw_starmath , binfilter/inc/bf_sc, binfilter/inc/bf_sd , binfilter/inc/bf_sch .. and so on
+
 
+
[11:33]  <chacha_chaudhry_> okay
+
 
+
[11:33]  <ericb2> and if you look carefully e.g. in starmath, you'll find the same headers in starmath/sour
+
 
+
[11:33]  <ericb2> and if you look carefully e.g. in starmath, you'll find the same headers in starmath/source
+
 
+
[11:33]  <ericb2> means : complete duplication of headers
+
 
+
[11:33]  * chacha_chaudhry_ is now known as chacha_chaudhry
+
 
+
[11:33]  <chacha_chaudhry> ericb2: yes
+
 
+
[11:34]  <ericb2> so I asked ause ( Hans-Joachim Lankenau ) to explain me whether deliver all headers before the build and not duplicate them
+
could help
+
 
+
[11:34]  <ericb2> the answer is no
+
 
+
[11:35]  <chacha_chaudhry> reason ?
+
 
+
[11:35]  <ericb2> first, duplication was indended to keep the binfilter version of the header unchange while the other one is free to move on
+
 
+
[11:35]  <ericb2> second, deliver first has towo major problems:
+
 
+
[11:35]  <ericb2> for one, some (quite some) of the header are generated
+
 
+
[11:35]  <ericb2> and changing the build to a clean multi-pass environment it quite a bit of work (imho, less stable also)
+
 
+
[11:36]  <chacha_chaudhry> okay
+
 
+
[11:36]  <ericb2> ause had some contact with the mozilla build which had chosen this in the past
+
 
+
[11:36]  <ericb2> and it's at least part of the cause for a couple of strange effects
+
 
+
[11:37]  <ericb2>  .. and some are even used wrong in many places ;)
+
 
+
[11:37]  <chacha_chaudhry> okay
+
 
+
[11:37]  <ericb2> here is ause explanation, showing us how things are complicated in the reality
+
 
+
[11:37]  * ericb2 knows some modules have a great history ;)
+
 
+
[11:38]  <ericb2> in OpenOffice.org source code
+
 
+
[11:38]  <ericb2> I think we can close with the next tasks to come ?
+
 
+
[11:38]  <chacha_chaudhry> yes
+
 
+
[11:39]  <ericb2> wae4binfilter01 is imho ready for QA
+
 
+
[11:39]  <ericb2> but we have no QA resp
+
 
+
[11:39]  <ericb2> Action Item : find one QA rep
+
 
+
[11:39]  <ericb2> wae4binfilter02 is work in progress, and I'll commit the patches you'll send to me
+
 
+
[11:39]  chacha_chaudhry ChanServ ChaoticGood
+
 
+
[11:39]  chacha_chaudhry ChanServ ChaoticGood
+
 
+
[11:40]  <chacha_chaudhry> okay by today late all bf_sw
+
 
+
[11:40]  <ericb2> chacha_chaudhry: ok, great.  from my part, I'll be on holidays next week, so I'll try to continue, but no doubt the second cws will
+
wait until I'm back
+
 
+
[11:41]  <ericb2> chacha_chaudhry: and I'll prepare something about UNO
+
 
+
[11:41]  <chacha_chaudhry> I will take up bf_xmloff next -- I will finish all by tomorrow if you leave it to me.
+
 
+
[11:41]  <ericb2> chacha_chaudhry: no problem. I have a lot to do from my side, and not only for wae4binfilter0x
+
 
+
[11:41]  chacha_chaudhry ChanServ ChaoticGood
+
 
+
[11:41]  <ericb2> chacha_chaudhry: so you are welcome
+
 
+
[11:41]  <chacha_chaudhry> ericb2: I know
+
 
+
[11:42]  <chacha_chaudhry> ericb2: :) yes I will mail you half today and rest tomorrow late
+
 
+
[11:42]  <chacha_chaudhry> ericb2: all files
+
 
+
[11:42]  <ericb2> chacha_chaudhry: no problem
+
 
+
[11:42]  * ericb2 now invites interested people to read the wiki page mentioned above, and ask questions on the channel if ever they have
+
 
+
[11:43]  <ericb2> End of meeting ?
+
 
+
[11:44]  <chacha_chaudhry> ericb2: yes
+

Revision as of 18:09, 28 July 2008

chacha_chaudhry_ ericb2: let us start 11:10
ericb2 chacha_chaudhry ok 11:10
ericb2 The point is to present the most important warnings we have in binfilter 11:11
ericb2 identify, analyze them helps to fix them, improve the code, and fix bugs too 11:12
ericb2 The origin of fixing warnings in OpenOffice.org projet is due to Stephan Bergmann 11:13
ericb2 his initial mail : http://www.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=14653 11:13
ericb2 for the one who compiled OpenOffice.org 3 or more years ago, the amount of warnings was impressive 11:13
ericb2 and teh log size too :-) 11:13
ericb2 currently, OpenOffice.org build environment can be configured using --enable-werror 11:15
ericb2 Will turn warnings to errors. (Has no effect in modules where the treating of warnings as errors is disabled 11:15
ericb2 ) 11:15
ericb2 binfilter is one of the modules where werror are not treated 11:16
ericb2 and the game (sort of) is to fix most of them 11:16
ericb2 Rakesh Pandit, alias chacha_chaudhry here, helps me in this task 11:17
ericb2 the idea is not to spend time, but discover OpenOffice.org building process, understand how create patches, understand the code 11:18
and fix little design errors
ericb2 this s a difficult task, because of the amount of warnings: the log is more than 3MB 11:18
ericb2 chacha_chaudhry if you want to add something, please go ahead ;) 11:19
* chacha_chaudhry has quit (Read error: 110 (Connection timed out)) 11:19
chacha_chaudhry_ yes sure ... 11:19
chacha_chaudhry_ There is a wiki page ---> which has some good points for solving these warnings and keeping code warning free. 11:20
http://wiki.services.openoffice.org/wiki/Writing_warning-free_code
ericb2 chacha_chaudhry_: exact 11:21
chacha_chaudhry_ ericb2 has also made one more avoid warnings at http://wiki.services.openoffice.org/wiki/User:Ericb#Avoid_Warnings 11:21
ericb2 chacha_chaudhry_: in fact, I think it does worth to complete the first wiki page with what I wrote 11:21
chacha_chaudhry_ we may move this to more appropriate page, ericb2 yes 11:21
ericb2 chacha_chaudhry_: looks like we identified most of the known warnings in binfilter 11:22
ericb2 chacha_chaudhry_: in a previous cws ( wae4extensions ) , we had other 11:22
chacha_chaudhry_ ericb2: yes I think so 11:22
ericb2 chacha_chaudhry_: but globally, it was the same list 11:22
ericb2 what kind of warnings can be meet ? 11:22
chacha_chaudhry_ ericb2: Nice -- so essentially we have a complete list 11:23
ericb2 chacha_chaudhry_: very exhaustive list, yes 11:23
chacha_chaudhry_ let me list them down you may like to add: 11:23
chacha_chaudhry_ a) enumeration -- not handled in switch 11:24
chacha_chaudhry_ b) warning: "/*" within comment 11:24
chacha_chaudhry_ c) in constructor warnings -- mixed up order in definition and declaration 11:25
chacha_chaudhry_ d) variables not used 11:25
chacha_chaudhry_ etc ... 11:26
chacha_chaudhry_ ericb2: you may like to add 11:26
ericb2 chacha_chaudhry_: ok. I'll ask Stephan Bergmann, and we'll see 11:26
chacha_chaudhry_ ericb2: Okay 11:26
ericb2 About the effort, chacha_chaudhry_ did a lot on the page : 11:27
ericb2 http://wiki.services.openoffice.org/wiki/Education_Project/Effort/Fixing_warning 11:27
ericb2 chacha_chaudhry_: I don't know for you, but I think fix such warnings, helped me a lot to read and understand a bunch of code in 11:28
OpenOffice.org
* ericb2 forgot to add, the binfilter is a deprecated module, in end of life state 11:29
chacha_chaudhry_ ericb2: me too not only understand code, but helped me to understand the whole development model followed 11:29
ericb2 chacha_chaudhry_: btw, I discussed with ause about the headers issue I found 11:29
ericb2 chacha_chaudhry_: and he was very kind to explain me better 11:30
chacha_chaudhry_ ericb2: okay -- nice 11:30
chacha_chaudhry_ ericb2: may you describe briefly 11:30
ericb2 chacha_chaudhry_: sure 11:30
ericb2 for the one who read a bit the code, the headers in binfilter are a dupe of the one you find in some other modules 11:31
ericb2 e.g. in binfilter, you can find : 11:31
ericb2 bw_starmath , bf_sc, bf_sd , bf_sch .. and so on 11:31
ericb2 and in inc, the corresponding public headers : 11:32
ericb2 binfilter/inc/bw_starmath , binfilter/inc/bf_sc, binfilter/inc/bf_sd , binfilter/inc/bf_sch .. and so on 11:32
chacha_chaudhry_ okay 11:33
ericb2 and if you look carefully e.g. in starmath, you'll find the same headers in starmath/sour 11:33
ericb2 and if you look carefully e.g. in starmath, you'll find the same headers in starmath/source 11:33
ericb2 means : complete duplication of headers 11:33
* chacha_chaudhry_ is now known as chacha_chaudhry 11:33
chacha_chaudhry ericb2: yes 11:33
ericb2 so I asked ause ( Hans-Joachim Lankenau ) to explain me whether deliver all headers before the build and not duplicate them 11:34
could help
ericb2 the answer is no 11:34
chacha_chaudhry reason ? 11:35
ericb2 first, duplication was indended to keep the binfilter version of the header unchange while the other one is free to move on 11:35
ericb2 second, deliver first has towo major problems: 11:35
ericb2 for one, some (quite some) of the header are generated 11:35
ericb2 and changing the build to a clean multi-pass environment it quite a bit of work (imho, less stable also) 11:35
chacha_chaudhry okay 11:36
ericb2 ause had some contact with the mozilla build which had chosen this in the past 11:36
ericb2 and it's at least part of the cause for a couple of strange effects 11:36
ericb2 .. and some are even used wrong in many places ;) 11:37
chacha_chaudhry okay 11:37
ericb2 here is ause explanation, showing us how things are complicated in the reality 11:37
* ericb2 knows some modules have a great history ;) 11:37
ericb2 in OpenOffice.org source code 11:38
ericb2 I think we can close with the next tasks to come ? 11:38
chacha_chaudhry yes 11:38
ericb2 wae4binfilter01 is imho ready for QA 11:39
ericb2 but we have no QA resp 11:39
ericb2 Action Item : find one QA rep 11:39
ericb2 wae4binfilter02 is work in progress, and I'll commit the patches you'll send to me 11:39
chacha_chaudhry ChanServ ChaoticGood 11:39
chacha_chaudhry ChanServ ChaoticGood 11:39
chacha_chaudhry okay by today late all bf_sw 11:40
ericb2 chacha_chaudhry: ok, great. from my part, I'll be on holidays next week, so I'll try to continue, but no doubt the second cws will 11:40
wait until I'm back
ericb2 chacha_chaudhry: and I'll prepare something about UNO 11:41
chacha_chaudhry I will take up bf_xmloff next -- I will finish all by tomorrow if you leave it to me. 11:41
ericb2 chacha_chaudhry: no problem. I have a lot to do from my side, and not only for wae4binfilter0x 11:41
chacha_chaudhry ChanServ ChaoticGood 11:41
ericb2 chacha_chaudhry: so you are welcome 11:41
chacha_chaudhry ericb2: I know 11:41
chacha_chaudhry ericb2: :) yes I will mail you half today and rest tomorrow late 11:42
chacha_chaudhry ericb2: all files 11:42
ericb2 chacha_chaudhry: no problem 11:42
* ericb2 now invites interested people to read the wiki page mentioned above, and ask questions on the channel if ever they have 11:42
ericb2 End of meeting ? 11:43
chacha_chaudhry ericb2: yes 11:44

Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!

Personal tools