I have some code as such
This is a decent sized app and THE_PATH is something that I dont want to hardcode like this "/path/to/something/image.png"Code:#define THE_PATH "/path/to/somthing" // later on down I do this some_function (THE_PATH "/image.png");
It compiles, but with a warning of "traditional C rejects string concatenation." It also works fine in the app. (using GCC 3.2.1)
My only question is there a more graceful way of performing this and something that wont produce warnings?
This is for an open source project GrubConf and this change should be making its way to the masses in the next release.
Thanks for any insight you can provide.