Overview
| Comment: | Make GCC happy again
It again fails to determine that code is unreachable and then complains |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
d54804e8864d4d2c1cccce960d3b104b |
| User & Date: | js on 2022-08-07 21:26:57 |
| Other Links: | manifest | tags |
Context
|
2022-08-07
| ||
| 23:49 | objfw-new: Add initial support for properties (check-in: 759d73547f user: js tags: trunk) | |
| 21:26 | Make GCC happy again (check-in: d54804e886 user: js tags: trunk) | |
| 21:20 | objfw-new: Add --superclass (check-in: 64b0f552c1 user: js tags: trunk) | |
Changes
Modified utils/objfw-new/NewApp.m from [181e58f243] to [a817ca083b].
| ︙ | ︙ | |||
24 25 26 27 28 29 30 |
#import "OFOpenItemFailedException.h"
void
newApp(OFString *name)
{
OFString *path = [name stringByAppendingPathExtension: @"m"];
| | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#import "OFOpenItemFailedException.h"
void
newApp(OFString *name)
{
OFString *path = [name stringByAppendingPathExtension: @"m"];
OFFile *file = nil;
@try {
file = [OFFile fileWithPath: path mode: @"wx"];
} @catch (OFOpenItemFailedException *e) {
if (e.errNo != EEXIST)
@throw e;
[OFStdErr writeFormat: @"File %@ already exists! Aborting...\n",
|
| ︙ | ︙ |
Modified utils/objfw-new/NewClass.m from [13185d8fd3] to [eadf67910a].
| ︙ | ︙ | |||
25 26 27 28 29 30 31 |
#import "OFOpenItemFailedException.h"
void
newClass(OFString *name, OFString *superclass)
{
OFString *headerPath = [name stringByAppendingPathExtension: @"h"];
OFString *implPath = [name stringByAppendingPathExtension: @"m"];
| | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
#import "OFOpenItemFailedException.h"
void
newClass(OFString *name, OFString *superclass)
{
OFString *headerPath = [name stringByAppendingPathExtension: @"h"];
OFString *implPath = [name stringByAppendingPathExtension: @"m"];
OFFile *headerFile = nil, *implFile = nil;
@try {
headerFile = [OFFile fileWithPath: headerPath mode: @"wx"];
implFile = [OFFile fileWithPath: implPath mode: @"wx"];
} @catch (OFOpenItemFailedException *e) {
if (e.errNo != EEXIST)
@throw e;
|
| ︙ | ︙ |